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: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 100.6 kB / 17.58 MB, free: 5.418 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.001177/0.001177, allocations: 192.1 kB / 18.51 MB, free: 4.508 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.381/1.381, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001445/0.001445, allocations: 52.39 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1033, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004088/0.1075, allocations: 1.821 MB / 329.2 MB, free: 2.543 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.1093, allocations: 0.9488 MB / 330.1 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.1095, allocations: 0 / 330.1 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007354/0.1103, allocations: 171.5 kB / 330.3 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003992/0.1107, allocations: 123.5 kB / 330.4 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004877/0.1112, allocations: 155.7 kB / 330.6 MB, free: 1.145 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003025/0.1115, allocations: 211.3 kB / 330.8 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.1117, allocations: 21.55 kB / 330.8 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.1118, allocations: 83.69 kB / 330.9 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.112, allocations: 91.62 kB / 331 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.451e-05/0.1121, allocations: 8 kB / 331 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.1122, allocations: 59.95 kB / 331 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-05/0.1123, allocations: 39.84 kB / 331.1 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1124, allocations: 75.55 kB / 331.2 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.1128, allocations: 215.5 kB / 331.4 MB, free: 364 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1128, allocations: 7.984 kB / 331.4 MB, free: 356 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1128, allocations: 0 / 331.4 MB, free: 356 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.1128, allocations: 0 / 331.4 MB, free: 356 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.0009531/0.1138, allocations: 0.5196 MB / 331.9 MB, free: 15.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.1138, allocations: 12.03 kB / 331.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.1139, allocations: 34.75 kB / 331.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.701e-05/0.114, allocations: 24.73 kB / 332 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.1143, allocations: 254.8 kB / 332.2 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.1143, allocations: 12.31 kB / 332.2 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.1144, allocations: 7.938 kB / 332.2 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.1146, allocations: 117.9 kB / 332.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1147, allocations: 0 / 332.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1147, allocations: 0 / 332.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1147, allocations: 7.984 kB / 332.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.1149, allocations: 51.84 kB / 332.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007381/0.1156, allocations: 0.6104 MB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.1159, allocations: 127.9 kB / 333.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.116, allocations: 50.56 kB / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.1161, allocations: 0 / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002339/0.1163, allocations: 129.8 kB / 333.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.1163, allocations: 0 / 333.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005131/0.1168, allocations: 169.4 kB / 333.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.531e-05/0.1169, allocations: 136.5 kB / 333.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003258/0.1173, allocations: 288.8 kB / 333.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.1173, allocations: 33.7 kB / 333.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1174, allocations: 124.3 kB / 334.1 MB, free: 13.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.1175, allocations: 27.78 kB / 334.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.195e-05/0.1175, allocations: 33.7 kB / 334.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1177, allocations: 334.8 kB / 334.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.759e-05/0.1178, allocations: 31.98 kB / 334.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.1179, allocations: 74 kB / 334.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.1182, allocations: 104.7 kB / 334.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1182, allocations: 0 / 334.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000295/0.1185, allocations: 141.3 kB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1185, allocations: 8.094 kB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.1185, allocations: 4 kB / 334.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1185, allocations: 0 / 334.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.512e-05/0.1186, allocations: 15.98 kB / 334.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1187, allocations: 7.938 kB / 334.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.1188, allocations: 23.83 kB / 334.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.1188, allocations: 4 kB / 334.8 MB, free: 12.51 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.0001474/0.119, allocations: 149.4 kB / 335 MB, free: 12.36 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.119, allocations: 27.75 kB / 335 MB, free: 12.33 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.276e-05/0.1191, allocations: 25.7 kB / 335 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1191, allocations: 0 / 335 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.1191, allocations: 0 / 335 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.1191, allocations: 7.938 kB / 335.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.1194, allocations: 241.6 kB / 335.3 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1194, allocations: 0 / 335.3 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.131e-05/0.1194, allocations: 15.88 kB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.1195, allocations: 0 / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.1195, allocations: 8.125 kB / 335.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1195, allocations: 0 / 335.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.1195, allocations: 7.984 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003828/0.1199, allocations: 174.5 kB / 335.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.101e-05/0.12, allocations: 92.92 kB / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.12, allocations: 4 kB / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.1201, allocations: 15.98 kB / 335.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.1202, allocations: 23.8 kB / 335.6 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.1202, allocations: 7.984 kB / 335.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002234/0.1205, allocations: 216.5 kB / 335.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1205, allocations: 0 / 335.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1208, allocations: 36 kB / 335.9 MB, free: 11.38 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.001622/0.1224, allocations: 1.035 MB / 336.9 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000304/0.1227, allocations: 87.91 kB / 337 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1227, allocations: 0 / 337 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.1229, allocations: 60.09 kB / 337.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003783/0.1233, allocations: 52.28 kB / 337.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.1262, allocations: 2.152 MB / 339.3 MB, free: 7.852 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.1266, allocations: 0.7434 MB / 340 MB, free: 7.082 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.1267, allocations: 25.53 kB / 340 MB, free: 7.059 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.957e-05/0.1268, allocations: 55.42 kB / 340.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of SimCode: time 1.874e-06/0.1268, allocations: 0 / 340.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02841/0.1552, allocations: 5.03 MB / 345.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.454/7.609, allocations: 3.938 kB / 345.1 MB, free: 1.91 MB / 286.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches