Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.0013/0.0013, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001318/0.001318, allocations: 181.6 kB / 23.7 MB, free: 4.445 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.377/1.377, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 43.92 kB / 370.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2579, allocations: 52.19 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00353/0.2615, allocations: 1.824 MB / 424.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2626, allocations: 0.5494 MB / 424.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.584e-05/0.2627, allocations: 3.938 kB / 424.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.2629, allocations: 31.66 kB / 425 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.263, allocations: 39.66 kB / 425 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002708/0.2633, allocations: 67.86 kB / 425.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.2635, allocations: 167.4 kB / 425.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.2637, allocations: 41.75 kB / 425.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.2638, allocations: 83.62 kB / 425.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.2639, allocations: 71.62 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.264, allocations: 12 kB / 425.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.119e-05/0.264, allocations: 19.98 kB / 425.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.623e-05/0.2641, allocations: 51.77 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.779e-05/0.2642, allocations: 63.61 kB / 425.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.2645, allocations: 185 kB / 425.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2645, allocations: 0 / 425.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2645, allocations: 3.938 kB / 425.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2645, allocations: 3.938 kB / 425.8 MB, free: 11.19 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008371/0.2653, allocations: 441.6 kB / 426.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.2653, allocations: 12.03 kB / 426.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.194e-05/0.2654, allocations: 50.73 kB / 426.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.639e-05/0.2654, allocations: 28.73 kB / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.2657, allocations: 179 kB / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.2657, allocations: 12.41 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.2658, allocations: 16 kB / 426.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.2661, allocations: 191.8 kB / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2661, allocations: 0 / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.2661, allocations: 11.98 kB / 426.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.2662, allocations: 8 kB / 426.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.2665, allocations: 151.8 kB / 426.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.2676, allocations: 0.7107 MB / 427.5 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.2679, allocations: 157 kB / 427.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.268, allocations: 73.8 kB / 427.8 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.2681, allocations: 4 kB / 427.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.2683, allocations: 145.2 kB / 427.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.2683, allocations: 4.109 kB / 427.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005579/0.2689, allocations: 257.5 kB / 428.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.2689, allocations: 77.11 kB / 428.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001958/0.2691, allocations: 203 kB / 428.4 MB, free: 8.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.934e-05/0.2692, allocations: 45.62 kB / 428.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.2693, allocations: 144.2 kB / 428.6 MB, free: 8.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.286e-05/0.2693, allocations: 43.69 kB / 428.7 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.2694, allocations: 41.7 kB / 428.7 MB, free: 8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2695, allocations: 334.8 kB / 429 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.2697, allocations: 67.95 kB / 429.1 MB, free: 7.598 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/0.2699, allocations: 130.3 kB / 429.2 MB, free: 7.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003331/0.2702, allocations: 206.7 kB / 429.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2702, allocations: 0 / 429.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004254/0.2706, allocations: 241.4 kB / 429.7 MB, free: 6.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.2707, allocations: 8 kB / 429.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2707, allocations: 0 / 429.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.2707, allocations: 4 kB / 429.7 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.2708, allocations: 39.91 kB / 429.7 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.2709, allocations: 4 kB / 429.7 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.271, allocations: 27.88 kB / 429.8 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.271, allocations: 12.72 kB / 429.8 MB, free: 6.887 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001391/0.2712, allocations: 145.7 kB / 429.9 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.2712, allocations: 23.89 kB / 429.9 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004442/0.2716, allocations: 219 kB / 430.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.2716, allocations: 0 / 430.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.2717, allocations: 3.984 kB / 430.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2717, allocations: 0 / 430.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/0.2719, allocations: 228.5 kB / 430.4 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2719, allocations: 0 / 430.4 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.272, allocations: 23.98 kB / 430.4 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.272, allocations: 4 kB / 430.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.272, allocations: 7.984 kB / 430.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.272, allocations: 4 kB / 430.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.272, allocations: 3.938 kB / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.2724, allocations: 229.2 kB / 430.6 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.443e-05/0.2725, allocations: 23.84 kB / 430.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.2725, allocations: 0 / 430.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.2726, allocations: 23.91 kB / 430.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.558e-05/0.2727, allocations: 15.97 kB / 430.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.2727, allocations: 15.94 kB / 430.7 MB, free: 5.855 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001263/0.2728, allocations: 140.6 kB / 430.9 MB, free: 5.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2728, allocations: 0 / 430.9 MB, free: 5.719 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002509/0.2731, allocations: 35.95 kB / 430.9 MB, free: 5.684 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007168/0.2738, allocations: 0.7654 MB / 431.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003653/0.2742, allocations: 164.1 kB / 431.8 MB, free: 4.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2742, allocations: 4.062 kB / 431.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.2743, allocations: 75.89 kB / 431.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.2746, allocations: 43.98 kB / 431.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/0.2773, allocations: 2.176 MB / 434.1 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000121/0.2774, allocations: 124.9 kB / 434.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.2775, allocations: 33.47 kB / 434.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.2776, allocations: 63.39 kB / 434.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2776, allocations: 0 / 434.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03266/0.3103, allocations: 4.853 MB / 439.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.72, allocations: 4.062 kB / 439.2 MB, free: 13.38 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.00573806464672]