Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 108.1 kB / 17.15 MB, free: 6.309 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.001537/0.001537, allocations: 198 kB / 18.07 MB, free: 5.41 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.667/1.667, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001218/0.001218, allocations: 47.92 kB / 280 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1053, allocations: 46.64 MB / 326.6 MB, free: 4.91 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004038/0.1094, allocations: 2.039 MB / 328.6 MB, free: 2.852 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.1116, allocations: 1.046 MB / 329.7 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002449/0.1118, allocations: 3.938 kB / 329.7 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000969/0.1128, allocations: 283.4 kB / 330 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005689/0.1134, allocations: 187.5 kB / 330.1 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006952/0.1141, allocations: 239.6 kB / 330.4 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004865/0.1146, allocations: 339.1 kB / 330.7 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.1148, allocations: 68.31 kB / 330.8 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/0.1151, allocations: 119.5 kB / 330.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.1153, allocations: 143.4 kB / 331 MB, free: 452 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.707e-05/0.1154, allocations: 8 kB / 331 MB, free: 444 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.1155, allocations: 63.91 kB / 331.1 MB, free: 380 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.1157, allocations: 83.72 kB / 331.2 MB, free: 296 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.1158, allocations: 111.2 kB / 331.3 MB, free: 184 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004787/0.1163, allocations: 343.1 kB / 331.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1163, allocations: 0 / 331.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1163, allocations: 0 / 331.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.1163, allocations: 4 kB / 331.6 MB, free: 15.84 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001152/0.1175, allocations: 0.6455 MB / 332.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.1176, allocations: 12.03 kB / 332.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.475e-05/0.1176, allocations: 32.55 kB / 332.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.118, allocations: 335.9 kB / 332.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.1181, allocations: 12.38 kB / 332.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.387e-05/0.1181, allocations: 16.12 kB / 332.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.1184, allocations: 140.2 kB / 332.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1184, allocations: 0 / 332.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.1184, allocations: 4 kB / 332.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.1185, allocations: 4 kB / 332.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.1186, allocations: 75.75 kB / 332.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007166/0.1194, allocations: 496.3 kB / 333.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.1197, allocations: 130.8 kB / 333.5 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.1199, allocations: 52.84 kB / 333.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.015e-05/0.1199, allocations: 11.92 kB / 333.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.1202, allocations: 107.3 kB / 333.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.1202, allocations: 0 / 333.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005383/0.1208, allocations: 221.1 kB / 333.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.608e-05/0.1208, allocations: 106.8 kB / 334 MB, free: 13.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004465/0.1213, allocations: 432.5 kB / 334.4 MB, free: 12.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.1213, allocations: 33.7 kB / 334.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.1215, allocations: 167.9 kB / 334.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.893e-05/0.1215, allocations: 43.47 kB / 334.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.186e-05/0.1216, allocations: 41.7 kB / 334.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1217, allocations: 350.8 kB / 335 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.1218, allocations: 43.98 kB / 335.1 MB, free: 12.13 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.122, allocations: 101.9 kB / 335.2 MB, free: 12.01 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002065/0.1222, allocations: 116.4 kB / 335.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1222, allocations: 0 / 335.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003195/0.1225, allocations: 175.3 kB / 335.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.1226, allocations: 7.938 kB / 335.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.1226, allocations: 0 / 335.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.1226, allocations: 4 kB / 335.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.1227, allocations: 19.98 kB / 335.5 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.1228, allocations: 4 kB / 335.5 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.608e-05/0.1229, allocations: 19.91 kB / 335.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.1229, allocations: 11.98 kB / 335.5 MB, free: 11.64 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001588/0.1231, allocations: 175.5 kB / 335.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.305e-05/0.1231, allocations: 31.56 kB / 335.7 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.501e-05/0.1232, allocations: 34.94 kB / 335.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1232, allocations: 0 / 335.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.1232, allocations: 3.984 kB / 335.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1232, allocations: 0 / 335.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.1235, allocations: 305.4 kB / 336.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1235, allocations: 0 / 336.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.705e-05/0.1235, allocations: 8 kB / 336.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1235, allocations: 3.938 kB / 336.1 MB, free: 11.03 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.1235, allocations: 8 kB / 336.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1236, allocations: 3.938 kB / 336.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.1236, allocations: 0 / 336.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/0.1239, allocations: 200.6 kB / 336.3 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.402e-05/0.124, allocations: 112.7 kB / 336.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.124, allocations: 7.938 kB / 336.4 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.362e-05/0.1241, allocations: 11.98 kB / 336.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.1242, allocations: 11.98 kB / 336.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.1242, allocations: 4 kB / 336.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003176/0.1245, allocations: 319 kB / 336.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1245, allocations: 0 / 336.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002786/0.1248, allocations: 48 kB / 336.8 MB, free: 10.29 MB / 286.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001026/0.1259, allocations: 430.8 kB / 337.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003119/0.1262, allocations: 115.9 kB / 337.3 MB, free: 9.754 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1262, allocations: 0 / 337.3 MB, free: 9.754 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.1264, allocations: 59.97 kB / 337.4 MB, free: 9.695 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.1268, allocations: 65.39 kB / 337.4 MB, free: 9.629 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000883/0.1277, allocations: 0.5605 MB / 338 MB, free: 9.043 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.1282, allocations: 0.7755 MB / 338.8 MB, free: 8.242 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.1284, allocations: 50.25 kB / 338.8 MB, free: 8.191 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-05/0.1285, allocations: 35.38 kB / 338.9 MB, free: 8.156 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1285, allocations: 0 / 338.9 MB, free: 8.156 MB / 286.1 MB Notification: Performance of Templates: time 0.007318/0.1358, allocations: 3.641 MB / 342.5 MB, free: 4.512 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches