Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00175/0.00175, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00221/0.00221, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 63.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.262, allocations: 53.42 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003099/0.2651, allocations: 1.891 MB / 433.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.2663, allocations: 0.6661 MB / 433.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.678e-05/0.2664, allocations: 3.938 kB / 433.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.2666, allocations: 31.66 kB / 433.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.2667, allocations: 35.66 kB / 433.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.267, allocations: 79.78 kB / 433.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000249/0.2673, allocations: 175.4 kB / 434.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.2674, allocations: 44.56 kB / 434.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.2676, allocations: 79.64 kB / 434.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.2678, allocations: 83.59 kB / 434.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.26e-05/0.2678, allocations: 12 kB / 434.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.02e-05/0.2679, allocations: 24 kB / 434.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.509e-05/0.268, allocations: 47.78 kB / 434.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.176e-05/0.2681, allocations: 83.53 kB / 434.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.2683, allocations: 195.4 kB / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2684, allocations: 0 / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2684, allocations: 4 kB / 434.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.2684, allocations: 0 / 434.6 MB, free: 3.234 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.000899/0.2693, allocations: 453.4 kB / 435.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.2693, allocations: 8.031 kB / 435.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.692e-05/0.2694, allocations: 46.73 kB / 435.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.2695, allocations: 36.8 kB / 435.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.2698, allocations: 178.8 kB / 435.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.2698, allocations: 12.64 kB / 435.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.2698, allocations: 16.38 kB / 435.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003702/0.2702, allocations: 203.5 kB / 435.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.2702, allocations: 3.984 kB / 435.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.2702, allocations: 11.98 kB / 435.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/0.2703, allocations: 8 kB / 435.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003158/0.2706, allocations: 139.8 kB / 435.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.2717, allocations: 0.7497 MB / 436.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.272, allocations: 157.1 kB / 436.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.2722, allocations: 77.73 kB / 436.7 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.821e-05/0.2722, allocations: 4 kB / 436.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002689/0.2725, allocations: 141 kB / 436.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.2725, allocations: 0 / 436.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005753/0.2731, allocations: 261.7 kB / 437.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/0.2732, allocations: 81.11 kB / 437.2 MB, free: 492 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.2734, allocations: 208.2 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.2734, allocations: 33.69 kB / 437.4 MB, free: 236 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.2735, allocations: 136.3 kB / 437.5 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.574e-05/0.2736, allocations: 51.62 kB / 437.6 MB, free: 44 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.212e-05/0.2736, allocations: 41.78 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.2738, allocations: 338.8 kB / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.274, allocations: 67.95 kB / 438 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.2742, allocations: 133.8 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003411/0.2745, allocations: 202.6 kB / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2745, allocations: 0 / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004461/0.275, allocations: 245.3 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.275, allocations: 6.609 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.275, allocations: 7.938 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.275, allocations: 4 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.2752, allocations: 35.91 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.2752, allocations: 4 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.2753, allocations: 32.06 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.2754, allocations: 11.98 kB / 438.7 MB, free: 14.87 MB / 350.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.0001427/0.2755, allocations: 141.7 kB / 438.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.2755, allocations: 15.91 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004512/0.276, allocations: 215.5 kB / 439.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.276, allocations: 7.984 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.276, allocations: 0 / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.276, allocations: 4 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.2763, allocations: 244.5 kB / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2763, allocations: 0 / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.2764, allocations: 19.98 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.2764, allocations: 3.984 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.2764, allocations: 7.984 kB / 439.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2764, allocations: 0 / 439.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.2764, allocations: 0 / 439.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004063/0.2768, allocations: 245 kB / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.2769, allocations: 11.91 kB / 439.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.2769, allocations: 4 kB / 439.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.277, allocations: 19.97 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.2771, allocations: 15.97 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.2771, allocations: 4.094 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.2772, allocations: 151.5 kB / 439.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2772, allocations: 0 / 439.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002636/0.2775, allocations: 47.89 kB / 439.8 MB, free: 13.66 MB / 350.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.0007577/0.2782, allocations: 0.7681 MB / 440.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003925/0.2786, allocations: 167.8 kB / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2786, allocations: 0 / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001688/0.2788, allocations: 79.89 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.2791, allocations: 40.34 kB / 440.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002873/0.282, allocations: 2.193 MB / 443.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.2824, allocations: 0.7358 MB / 443.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.2825, allocations: 37.61 kB / 443.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.975e-05/0.2826, allocations: 55.42 kB / 443.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2826, allocations: 0 / 443.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03246/0.3151, allocations: 4.376 MB / 448.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.29, allocations: 0 / 448.3 MB, free: 5.137 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00198965 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable multiSwitch.u[1] in file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[1] from file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! Error: Could not read variable multiSwitch.u[2] in file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv. Warning: Get data of variable multiSwitch.u[2] from file Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.886284227999568]