Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000915/0.0009209, allocations: 92.16 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009262/0.0009263, allocations: 171.6 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005128/0.0005129, allocations: 8.469 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1178, allocations: 47.58 MB / 328.9 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002524/0.1204, allocations: 1.528 MB / 330.5 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.122, allocations: 0.9249 MB / 331.4 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.795e-05/0.1221, allocations: 0 / 331.4 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006656/0.1227, allocations: 155.6 kB / 331.5 MB, free: 1.145 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000257/0.123, allocations: 115.7 kB / 331.7 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.1235, allocations: 151.6 kB / 331.8 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.1237, allocations: 203.4 kB / 332 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.1238, allocations: 21.55 kB / 332 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.1239, allocations: 71.64 kB / 332.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.1241, allocations: 87.67 kB / 332.2 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.1241, allocations: 4 kB / 332.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.1243, allocations: 47.91 kB / 332.2 MB, free: 468 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.125e-05/0.1243, allocations: 39.83 kB / 332.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.108e-05/0.1244, allocations: 93.25 kB / 332.4 MB, free: 328 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.1247, allocations: 207.5 kB / 332.6 MB, free: 120 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1247, allocations: 0 / 332.6 MB, free: 120 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1247, allocations: 0 / 332.6 MB, free: 120 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.1247, allocations: 0 / 332.6 MB, free: 120 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000855/0.1256, allocations: 0.5041 MB / 333.1 MB, free: 15.56 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.1256, allocations: 8.031 kB / 333.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.388e-05/0.1257, allocations: 20.75 kB / 333.1 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.1261, allocations: 258.9 kB / 333.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.1261, allocations: 384 / 333.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.547e-05/0.1261, allocations: 16.12 kB / 333.4 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/0.1263, allocations: 117.9 kB / 333.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1264, allocations: 0 / 333.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.1264, allocations: 0 / 333.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1264, allocations: 4 kB / 333.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.1266, allocations: 55.91 kB / 333.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006517/0.1272, allocations: 0.6066 MB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.1275, allocations: 127.9 kB / 334.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.1276, allocations: 50.5 kB / 334.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.1276, allocations: 7.984 kB / 334.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.1279, allocations: 129.8 kB / 334.5 MB, free: 13.99 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.482e-06/0.1279, allocations: 0 / 334.5 MB, free: 13.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005211/0.1284, allocations: 169.4 kB / 334.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/0.1285, allocations: 140.6 kB / 334.8 MB, free: 13.65 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003317/0.1288, allocations: 284.9 kB / 335 MB, free: 13.36 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.1289, allocations: 29.7 kB / 335.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.129, allocations: 124.3 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.393e-05/0.129, allocations: 27.66 kB / 335.2 MB, free: 13.17 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.1291, allocations: 21.7 kB / 335.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1292, allocations: 338.7 kB / 335.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.221e-05/0.1293, allocations: 27.98 kB / 335.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.1295, allocations: 97.58 kB / 335.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.1297, allocations: 96.75 kB / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.1297, allocations: 0 / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002858/0.13, allocations: 145.3 kB / 335.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.13, allocations: 4 kB / 335.9 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.13, allocations: 7.938 kB / 335.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.13, allocations: 0 / 335.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.1302, allocations: 19.98 kB / 336 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.1302, allocations: 8.094 kB / 336 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.1303, allocations: 19.83 kB / 336 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.1303, allocations: 4 kB / 336 MB, free: 12.34 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001676/0.1305, allocations: 161.3 kB / 336.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.1306, allocations: 15.81 kB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.741e-05/0.1306, allocations: 25.7 kB / 336.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.1306, allocations: 8 kB / 336.2 MB, free: 12.13 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.1307, allocations: 3.938 kB / 336.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1307, allocations: 3.938 kB / 336.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/0.131, allocations: 241.5 kB / 336.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.131, allocations: 0 / 336.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.664e-05/0.131, allocations: 4 kB / 336.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.131, allocations: 4 kB / 336.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.131, allocations: 0 / 336.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.131, allocations: 4 kB / 336.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.131, allocations: 0 / 336.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003598/0.1314, allocations: 182.4 kB / 336.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.682e-05/0.1315, allocations: 100.9 kB / 336.7 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.1315, allocations: 4.125 kB / 336.7 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.1317, allocations: 19.98 kB / 336.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.146e-05/0.1317, allocations: 27.91 kB / 336.8 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.1318, allocations: 4 kB / 336.8 MB, free: 11.45 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002144/0.132, allocations: 208.5 kB / 337 MB, free: 11.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.132, allocations: 3.938 kB / 337 MB, free: 11.24 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.1323, allocations: 43.91 kB / 337 MB, free: 11.2 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001014/0.1333, allocations: 417.5 kB / 337.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002653/0.1336, allocations: 96.03 kB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1336, allocations: 0 / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.1338, allocations: 60.03 kB / 337.6 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.1342, allocations: 44.41 kB / 337.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006379/0.1348, allocations: 380.4 kB / 338 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.1352, allocations: 0.7322 MB / 338.7 MB, free: 9.438 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.275e-05/0.1353, allocations: 29.53 kB / 338.8 MB, free: 9.41 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.798e-05/0.1353, allocations: 19.44 kB / 338.8 MB, free: 9.391 MB / 286.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1353, allocations: 3.938 kB / 338.8 MB, free: 9.387 MB / 286.1 MB Notification: Performance of Templates: time 0.00594/0.1413, allocations: 2.534 MB / 341.3 MB, free: 6.852 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches