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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001835/0.001835, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001967/0.001967, allocations: 184.2 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 225.7 MB / 252.5 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 52 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2426, allocations: 52.18 MB / 422.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003683/0.2463, allocations: 1.942 MB / 424.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.2482, allocations: 1.091 MB / 425.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.2483, allocations: 7.938 kB / 425.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000932/0.2492, allocations: 309.6 kB / 425.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004649/0.2497, allocations: 215.2 kB / 426.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006394/0.2503, allocations: 289.1 kB / 426.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003856/0.2507, allocations: 343 kB / 426.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.2508, allocations: 40.38 kB / 426.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.251, allocations: 147.4 kB / 426.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.2512, allocations: 159.3 kB / 427.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.2513, allocations: 20 kB / 427.1 MB, free: 9.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.2514, allocations: 83.94 kB / 427.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.2516, allocations: 91.67 kB / 427.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.2517, allocations: 91.41 kB / 427.4 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004167/0.2521, allocations: 352.3 kB / 427.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2521, allocations: 0 / 427.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2521, allocations: 4 kB / 427.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.2521, allocations: 0 / 427.7 MB, free: 9.379 MB / 334.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.0009581/0.2531, allocations: 0.5972 MB / 428.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2531, allocations: 16.03 kB / 428.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.399e-05/0.2531, allocations: 42.73 kB / 428.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.317e-05/0.2532, allocations: 32.7 kB / 428.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.2536, allocations: 266.1 kB / 428.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.2536, allocations: 8 kB / 428.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.2537, allocations: 15.92 kB / 428.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.2539, allocations: 121.1 kB / 428.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2539, allocations: 0 / 428.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.2539, allocations: 4 kB / 428.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2539, allocations: 4 kB / 428.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001706/0.2541, allocations: 75.95 kB / 428.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006814/0.2548, allocations: 447.4 kB / 429.3 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.2551, allocations: 130.7 kB / 429.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.2552, allocations: 56.77 kB / 429.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.2553, allocations: 0 / 429.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/0.2555, allocations: 122.8 kB / 429.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.2555, allocations: 0 / 429.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000501/0.256, allocations: 221.3 kB / 429.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.256, allocations: 55.41 kB / 429.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/0.2566, allocations: 436.5 kB / 430.3 MB, free: 6.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.2566, allocations: 33.64 kB / 430.3 MB, free: 6.566 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.2567, allocations: 164 kB / 430.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.386e-05/0.2568, allocations: 43.72 kB / 430.5 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.452e-05/0.2568, allocations: 41.7 kB / 430.6 MB, free: 6.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.257, allocations: 342.8 kB / 430.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.2571, allocations: 51.94 kB / 431 MB, free: 5.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.2573, allocations: 147.6 kB / 431.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002142/0.2575, allocations: 110.5 kB / 431.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.2575, allocations: 4 kB / 431.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003273/0.2578, allocations: 184.8 kB / 431.4 MB, free: 5.441 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.2578, allocations: 4 kB / 431.4 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2579, allocations: 8.094 kB / 431.4 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.2579, allocations: 0 / 431.4 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.258, allocations: 31.92 kB / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.258, allocations: 0 / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.921e-05/0.2581, allocations: 23.88 kB / 431.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.2581, allocations: 8 kB / 431.5 MB, free: 5.367 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.0001677/0.2583, allocations: 163.5 kB / 431.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.79e-05/0.2583, allocations: 31.81 kB / 431.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004084/0.2587, allocations: 208.3 kB / 431.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2587, allocations: 0 / 431.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.2587, allocations: 3.984 kB / 431.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2588, allocations: 0 / 431.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002672/0.259, allocations: 256.5 kB / 432.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.259, allocations: 0 / 432.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.112e-05/0.2591, allocations: 11.98 kB / 432.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2591, allocations: 4 kB / 432.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.2591, allocations: 4 kB / 432.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2591, allocations: 0 / 432.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2591, allocations: 4 kB / 432.1 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.2595, allocations: 216.8 kB / 432.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.091e-05/0.2595, allocations: 35.8 kB / 432.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.2596, allocations: 0 / 432.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.352e-05/0.2596, allocations: 11.98 kB / 432.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.551e-05/0.2597, allocations: 19.89 kB / 432.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.2597, allocations: 7.984 kB / 432.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003495/0.2601, allocations: 315 kB / 432.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2601, allocations: 0 / 432.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002887/0.2604, allocations: 55.88 kB / 432.8 MB, free: 3.965 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,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.00215/0.2625, allocations: 1.103 MB / 433.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.2628, allocations: 127.1 kB / 434 MB, free: 2.898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2628, allocations: 0 / 434 MB, free: 2.898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.263, allocations: 63.91 kB / 434.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.2634, allocations: 82.59 kB / 434.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.2669, allocations: 2.852 MB / 437 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000169/0.2671, allocations: 169.7 kB / 437.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.2672, allocations: 42.27 kB / 437.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.2673, allocations: 95.39 kB / 437.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2673, allocations: 0 / 437.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03514/0.3025, allocations: 8.001 MB / 445.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.93, allocations: 3.938 kB / 445.3 MB, free: 7.559 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=0.00199601 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.370919487904757]