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: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",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.001399/0.001399, allocations: 96.39 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.001767/0.001768, allocations: 192 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.267/1.267, 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.001195/0.001195, allocations: 47.92 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07327/0.07448, allocations: 46.64 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003265/0.07777, allocations: 1.985 MB / 329.4 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.07947, allocations: 1.058 MB / 330.4 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.07961, allocations: 4 kB / 330.4 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007653/0.0804, allocations: 303.1 kB / 330.7 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004505/0.08086, allocations: 207.3 kB / 330.9 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.0815, allocations: 259.4 kB / 331.2 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003611/0.08187, allocations: 343.2 kB / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.08201, allocations: 64.38 kB / 331.6 MB, free: 164 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000181/0.0822, allocations: 139.5 kB / 331.7 MB, free: 24 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.08241, allocations: 151.4 kB / 331.9 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.764e-05/0.08247, allocations: 20 kB / 331.9 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000163/0.08263, allocations: 71.91 kB / 331.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.08275, allocations: 87.73 kB / 332 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.08288, allocations: 123.2 kB / 332.1 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.08325, allocations: 347.1 kB / 332.5 MB, free: 15.24 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.08326, allocations: 0 / 332.5 MB, free: 15.24 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08327, allocations: 0 / 332.5 MB, free: 15.24 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.08329, allocations: 0 / 332.5 MB, free: 15.24 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.0008653/0.08416, allocations: 0.6649 MB / 333.2 MB, free: 14.51 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.0842, allocations: 8.031 kB / 333.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.269e-05/0.08425, allocations: 42.73 kB / 333.2 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.296e-05/0.08433, allocations: 32.56 kB / 333.2 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.08471, allocations: 331.9 kB / 333.6 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.08474, allocations: 8.375 kB / 333.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.08477, allocations: 15.94 kB / 333.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.08506, allocations: 148.1 kB / 333.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.08507, allocations: 0 / 333.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.08509, allocations: 4 kB / 333.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.0851, allocations: 0 / 333.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.08528, allocations: 79.81 kB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000625/0.08591, allocations: 496.3 kB / 334.3 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.08623, allocations: 134.6 kB / 334.4 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.08635, allocations: 48.83 kB / 334.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.08638, allocations: 8 kB / 334.5 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/0.08659, allocations: 107.3 kB / 334.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.0866, allocations: 0 / 334.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004659/0.08707, allocations: 218.4 kB / 334.8 MB, free: 12.72 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.08714, allocations: 110.8 kB / 334.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004182/0.08756, allocations: 424.5 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.08759, allocations: 33.7 kB / 335.4 MB, free: 12.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.08771, allocations: 171.9 kB / 335.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.908e-05/0.08775, allocations: 39.55 kB / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.248e-05/0.08782, allocations: 41.7 kB / 335.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.08793, allocations: 342.8 kB / 335.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.08804, allocations: 43.98 kB / 336 MB, free: 11.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.08819, allocations: 109.9 kB / 336.1 MB, free: 11.35 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.0884, allocations: 103.2 kB / 336.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.08841, allocations: 4 kB / 336.2 MB, free: 11.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003082/0.08873, allocations: 175.3 kB / 336.4 MB, free: 11.06 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.08876, allocations: 16 kB / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.08877, allocations: 0 / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.395e-05/0.0888, allocations: 0 / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.08892, allocations: 31.92 kB / 336.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.08893, allocations: 0 / 336.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.08904, allocations: 19.83 kB / 336.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.08906, allocations: 8 kB / 336.4 MB, free: 10.98 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.0001408/0.08921, allocations: 163.6 kB / 336.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.551e-05/0.08926, allocations: 35.56 kB / 336.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.579e-05/0.08933, allocations: 46.89 kB / 336.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.08935, allocations: 4 kB / 336.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.08936, allocations: 0 / 336.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.08936, allocations: 0 / 336.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002343/0.0896, allocations: 297.4 kB / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.08961, allocations: 0 / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.149e-05/0.08966, allocations: 15.94 kB / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.08967, allocations: 3.938 kB / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.08969, allocations: 0 / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.08969, allocations: 7.938 kB / 337 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.0897, allocations: 4 kB / 337 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003186/0.09002, allocations: 192.7 kB / 337.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.119e-05/0.09011, allocations: 120.6 kB / 337.3 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.09015, allocations: 0 / 337.3 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.09024, allocations: 11.98 kB / 337.3 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.09031, allocations: 15.98 kB / 337.3 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.09033, allocations: 12 kB / 337.3 MB, free: 9.973 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003059/0.09064, allocations: 315 kB / 337.7 MB, free: 9.668 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09065, allocations: 4 kB / 337.7 MB, free: 9.664 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.09094, allocations: 48 kB / 337.7 MB, free: 9.617 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.001342/0.09229, allocations: 1.049 MB / 338.8 MB, free: 8.551 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002994/0.0926, allocations: 135.7 kB / 338.9 MB, free: 8.418 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.09261, allocations: 0 / 338.9 MB, free: 8.418 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.09274, allocations: 63.91 kB / 338.9 MB, free: 8.355 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.09317, allocations: 69.33 kB / 339 MB, free: 8.285 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.09633, allocations: 2.842 MB / 341.9 MB, free: 5.355 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.09663, allocations: 0.7714 MB / 342.6 MB, free: 4.559 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001274/0.09677, allocations: 50.23 kB / 342.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.09693, allocations: 91.41 kB / 342.8 MB, free: 4.418 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09693, allocations: 3.938 kB / 342.8 MB, free: 4.414 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2809/0.3779, allocations: 7.052 MB / 349.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.23, allocations: 11.52 kB / 349.8 MB, free: 13.28 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches