Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_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.001278/0.001278, allocations: 110.4 kB / 17.07 MB, free: 5.996 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.001343/0.001343, allocations: 197.3 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 39.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2472, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00336/0.2506, allocations: 2.014 MB / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.2525, allocations: 1.13 MB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.2527, allocations: 7.875 kB / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008485/0.2535, allocations: 295.2 kB / 403.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004431/0.254, allocations: 207.3 kB / 403.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006901/0.2547, allocations: 286.2 kB / 404.2 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004117/0.2551, allocations: 347.2 kB / 404.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.2553, allocations: 52.38 kB / 404.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001979/0.2555, allocations: 147.4 kB / 404.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.2557, allocations: 151.4 kB / 404.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.215e-05/0.2557, allocations: 20 kB / 404.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.2559, allocations: 75.95 kB / 404.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.256, allocations: 87.67 kB / 405 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.2562, allocations: 131.2 kB / 405.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004569/0.2567, allocations: 345.7 kB / 405.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.2567, allocations: 0 / 405.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2567, allocations: 0 / 405.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.2567, allocations: 4 kB / 405.5 MB, free: 3.57 MB / 318.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.001005/0.2577, allocations: 0.6647 MB / 406.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.2578, allocations: 12.03 kB / 406.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.02e-05/0.2578, allocations: 46.67 kB / 406.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.068e-05/0.2579, allocations: 32.7 kB / 406.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004651/0.2584, allocations: 339.8 kB / 406.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.2584, allocations: 11.98 kB / 406.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.2584, allocations: 12 kB / 406.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.2587, allocations: 144.1 kB / 406.7 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2588, allocations: 3.984 kB / 406.7 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.2588, allocations: 4 kB / 406.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.2588, allocations: 4 kB / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.259, allocations: 63.97 kB / 406.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007246/0.2597, allocations: 496.2 kB / 407.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.2601, allocations: 142.6 kB / 407.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.2602, allocations: 52.78 kB / 407.5 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.2602, allocations: 7.984 kB / 407.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.2605, allocations: 111.3 kB / 407.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.644e-06/0.2605, allocations: 0 / 407.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005527/0.2611, allocations: 217.3 kB / 407.8 MB, free: 1.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.2611, allocations: 102.8 kB / 407.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005351/0.2617, allocations: 436.5 kB / 408.3 MB, free: 484 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.2617, allocations: 29.7 kB / 408.4 MB, free: 448 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.2619, allocations: 164 kB / 408.5 MB, free: 280 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.2619, allocations: 43.67 kB / 408.6 MB, free: 236 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-05/0.262, allocations: 45.7 kB / 408.6 MB, free: 184 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.2622, allocations: 338.8 kB / 408.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.2624, allocations: 51.92 kB / 409 MB, free: 15.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.2625, allocations: 101.9 kB / 409.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/0.2628, allocations: 110.1 kB / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.2628, allocations: 4 kB / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003474/0.2632, allocations: 169.4 kB / 409.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.2632, allocations: 11.98 kB / 409.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2632, allocations: 48 / 409.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.2632, allocations: 7.984 kB / 409.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.2634, allocations: 31.98 kB / 409.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2634, allocations: 0 / 409.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.2635, allocations: 19.89 kB / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.2635, allocations: 4 kB / 409.4 MB, free: 15.3 MB / 334.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.0001893/0.2637, allocations: 179.4 kB / 409.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.948e-05/0.2638, allocations: 27.81 kB / 409.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.694e-05/0.2638, allocations: 30.94 kB / 409.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2638, allocations: 4 kB / 409.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2639, allocations: 7.938 kB / 409.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2639, allocations: 0 / 409.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003199/0.2642, allocations: 309.3 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2642, allocations: 0 / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.302e-05/0.2642, allocations: 11.98 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2643, allocations: 0 / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.2643, allocations: 4 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2643, allocations: 4 kB / 410 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2643, allocations: 0 / 410 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000367/0.2647, allocations: 204.8 kB / 410.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.317e-05/0.2648, allocations: 104.9 kB / 410.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.2648, allocations: 11.92 kB / 410.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.401e-05/0.2649, allocations: 4 kB / 410.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.194e-05/0.265, allocations: 15.98 kB / 410.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.265, allocations: 7.984 kB / 410.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003697/0.2654, allocations: 315 kB / 410.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2654, allocations: 4 kB / 410.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002949/0.2657, allocations: 59.88 kB / 410.7 MB, free: 13.92 MB / 334.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.002107/0.2678, allocations: 1.067 MB / 411.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003242/0.2682, allocations: 119.8 kB / 411.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2682, allocations: 0 / 411.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.2683, allocations: 55.98 kB / 412 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.2688, allocations: 82.97 kB / 412 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003678/0.2725, allocations: 2.805 MB / 414.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004407/0.2729, allocations: 0.779 MB / 415.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.2731, allocations: 50.22 kB / 415.7 MB, free: 8.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.2732, allocations: 91.41 kB / 415.8 MB, free: 8.891 MB / 334.1 MB Notification: Performance of SimCode: time 6.82e-07/0.2732, allocations: 0 / 415.8 MB, free: 8.891 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.3043, allocations: 7.191 MB / 423 MB, free: 1.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.398/8.703, allocations: 7.094 kB / 423 MB, free: 1.816 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches