Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001511/0.001511, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001836/0.001836, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 58.38 kB / 306.9 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1277, allocations: 50.54 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003663/0.1315, allocations: 1.826 MB / 359.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002469/0.134, allocations: 0.9667 MB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.1342, allocations: 4 kB / 360.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.1345, allocations: 27.72 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.1346, allocations: 39.66 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.1351, allocations: 99.81 kB / 360.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005547/0.1357, allocations: 315.4 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.1359, allocations: 53.62 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008562/0.1368, allocations: 0.7136 MB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.1371, allocations: 139.4 kB / 361.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.1372, allocations: 28 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.69e-05/0.1373, allocations: 23.94 kB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.1375, allocations: 143.4 kB / 361.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.1377, allocations: 234.2 kB / 362.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00078/0.1385, allocations: 0.7437 MB / 362.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1386, allocations: 4 kB / 362.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1386, allocations: 0 / 362.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.204e-05/0.1386, allocations: 0 / 362.8 MB, free: 8.711 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001738/0.1403, allocations: 1.161 MB / 364 MB, free: 7.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.1404, allocations: 12.03 kB / 364 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.1406, allocations: 80.08 kB / 364.1 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/0.1411, allocations: 396.1 kB / 364.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.591e-05/0.1411, allocations: 12.56 kB / 364.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.1412, allocations: 16.38 kB / 364.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005814/0.1418, allocations: 258.2 kB / 364.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1418, allocations: 0 / 364.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.418e-05/0.1419, allocations: 15.94 kB / 364.7 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1419, allocations: 4 kB / 364.7 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003426/0.1422, allocations: 143.5 kB / 364.9 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.1436, allocations: 0.7232 MB / 365.6 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000409/0.144, allocations: 214.4 kB / 365.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.1443, allocations: 180.7 kB / 366 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.1443, allocations: 0 / 366 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006115/0.145, allocations: 393.2 kB / 366.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.174e-06/0.145, allocations: 0 / 366.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00153/0.1465, allocations: 0.9201 MB / 367.3 MB, free: 3.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.1467, allocations: 292.9 kB / 367.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.1481, allocations: 0.9491 MB / 368.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.128e-05/0.1481, allocations: 37.7 kB / 368.6 MB, free: 2.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1482, allocations: 126 kB / 368.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.491e-05/0.1484, allocations: 67.19 kB / 368.8 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/0.1486, allocations: 165 kB / 368.9 MB, free: 2.207 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1488, allocations: 334.8 kB / 369.2 MB, free: 1.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002716/0.149, allocations: 124.2 kB / 369.4 MB, free: 1.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/0.1493, allocations: 164.7 kB / 369.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007838/0.1501, allocations: 0.7027 MB / 370.2 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.1501, allocations: 3.938 kB / 370.2 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.1981/0.3483, allocations: 0.742 MB / 371 MB, free: 20.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.3484, allocations: 246 kB / 371.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3485, allocations: 1.344 kB / 371.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.3485, allocations: 4.25 kB / 371.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.117e-05/0.3486, allocations: 13.88 kB / 371.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.3486, allocations: 1.25 kB / 371.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.349, allocations: 25.91 kB / 371.3 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002068/0.3492, allocations: 113.2 kB / 371.4 MB, free: 20.06 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007361/0.35, allocations: 0.6133 MB / 372 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.3501, allocations: 79.75 kB / 372.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003037/0.3504, allocations: 128.4 kB / 372.2 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.3505, allocations: 2.062 kB / 372.2 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3505, allocations: 3.75 kB / 372.2 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3505, allocations: 0 / 372.2 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/0.3526, allocations: 1.426 MB / 373.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3526, allocations: 1.781 kB / 373.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.943e-05/0.3526, allocations: 4.766 kB / 373.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3526, allocations: 1.094 kB / 373.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.362e-05/0.3527, allocations: 35.78 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3527, allocations: 0 / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3527, allocations: 7.078 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.354, allocations: 0.9665 MB / 374.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005886/0.3546, allocations: 415.7 kB / 375 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.3547, allocations: 24.28 kB / 375.1 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.3549, allocations: 20.98 kB / 375.1 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.3551, allocations: 59.08 kB / 375.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.3552, allocations: 116 kB / 375.3 MB, free: 18.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009193/0.3562, allocations: 0.6882 MB / 375.9 MB, free: 18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3562, allocations: 0 / 375.9 MB, free: 18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004585/0.3566, allocations: 92 kB / 376 MB, free: 18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002076/0.3569, allocations: 146.8 kB / 376.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009058/0.3578, allocations: 0.8962 MB / 377.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3578, allocations: 0 / 377.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005364/0.3583, allocations: 0.7485 MB / 377.8 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.3594, allocations: 270.2 kB / 378.1 MB, free: 16.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.3614, allocations: 1.292 MB / 379.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/0.3619, allocations: 0.9447 MB / 380.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000214/0.3621, allocations: 90.23 kB / 380.4 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.861e-05/0.3622, allocations: 45.23 kB / 380.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3622, allocations: 1.281 kB / 380.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01824/0.3804, allocations: 9.498 MB / 390 MB, free: 11.92 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches