Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002047/0.002047, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00219/0.00219, allocations: 213.7 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 257.5 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 43.94 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2639, allocations: 53.37 MB / 431.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003334/0.2672, allocations: 1.864 MB / 433 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.2686, allocations: 0.705 MB / 433.7 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.2687, allocations: 7.938 kB / 433.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.2688, allocations: 27.67 kB / 433.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001362/0.269, allocations: 35.66 kB / 433.8 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.2693, allocations: 103.7 kB / 433.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002668/0.2696, allocations: 167.5 kB / 434 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.2698, allocations: 62.58 kB / 434.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.2699, allocations: 83.66 kB / 434.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.2701, allocations: 95.53 kB / 434.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.2701, allocations: 12 kB / 434.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.637e-05/0.2702, allocations: 27.98 kB / 434.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.478e-05/0.2703, allocations: 43.84 kB / 434.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.2704, allocations: 91.45 kB / 434.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000313/0.2707, allocations: 201 kB / 434.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2707, allocations: 0 / 434.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2707, allocations: 0 / 434.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.2707, allocations: 0 / 434.6 MB, free: 3.359 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009875/0.2717, allocations: 453.2 kB / 435.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2718, allocations: 8.031 kB / 435.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.415e-05/0.2718, allocations: 54.73 kB / 435.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.272, allocations: 32.78 kB / 435.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.2723, allocations: 195.7 kB / 435.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.2723, allocations: 16.38 kB / 435.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.2724, allocations: 16.38 kB / 435.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004436/0.2728, allocations: 218.4 kB / 435.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.2728, allocations: 0 / 435.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.2728, allocations: 8 kB / 435.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/0.2729, allocations: 4 kB / 435.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003568/0.2732, allocations: 143.8 kB / 435.8 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.2744, allocations: 0.7456 MB / 436.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006544/0.2751, allocations: 178.7 kB / 436.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.2752, allocations: 64.75 kB / 436.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.2753, allocations: 11.94 kB / 436.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003103/0.2756, allocations: 146.5 kB / 436.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.2756, allocations: 0 / 436.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006454/0.2762, allocations: 241.4 kB / 437.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.534e-05/0.2763, allocations: 89.08 kB / 437.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.2766, allocations: 223 kB / 437.4 MB, free: 364 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.2766, allocations: 37.69 kB / 437.5 MB, free: 320 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.2767, allocations: 140.3 kB / 437.6 MB, free: 176 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.2768, allocations: 39.67 kB / 437.7 MB, free: 136 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.171e-05/0.2768, allocations: 57.66 kB / 437.7 MB, free: 72 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.277, allocations: 334.8 kB / 438 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.2772, allocations: 63.95 kB / 438.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.2775, allocations: 144.5 kB / 438.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003816/0.2778, allocations: 212.6 kB / 438.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2778, allocations: 4 kB / 438.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000492/0.2783, allocations: 245.2 kB / 438.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.2783, allocations: 11.98 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2784, allocations: 0 / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.2784, allocations: 4 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.2786, allocations: 36.17 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.2786, allocations: 8 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.2788, allocations: 39.75 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.962e-05/0.2788, allocations: 12 kB / 438.8 MB, free: 14.9 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001621/0.279, allocations: 143.8 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.279, allocations: 15.91 kB / 439 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/0.2793, allocations: 131 kB / 439.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2793, allocations: 8.469 kB / 439.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2793, allocations: 0 / 439.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.2793, allocations: 7.922 kB / 439.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000708/0.28, allocations: 453.3 kB / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.28, allocations: 4 kB / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.2801, allocations: 23.97 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2801, allocations: 0 / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.2801, allocations: 7.938 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2801, allocations: 4 kB / 439.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2801, allocations: 0 / 439.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000456/0.2806, allocations: 288.1 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.2806, allocations: 19.84 kB / 439.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.2807, allocations: 15.98 kB / 439.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.2808, allocations: 19.98 kB / 439.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.641e-05/0.2809, allocations: 19.97 kB / 439.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.2809, allocations: 11.98 kB / 439.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001522/0.2811, allocations: 148.6 kB / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2811, allocations: 0 / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.2814, allocations: 43.89 kB / 440.1 MB, free: 13.48 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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008494/0.2823, allocations: 0.8247 MB / 441 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004445/0.2827, allocations: 167.7 kB / 441.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2827, allocations: 0.5 kB / 441.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001911/0.2829, allocations: 75.89 kB / 441.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.2833, allocations: 27.98 kB / 441.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.2864, allocations: 2.236 MB / 443.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.2868, allocations: 0.7398 MB / 444.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.2869, allocations: 33.61 kB / 444.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.287, allocations: 67.41 kB / 444.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of SimCode: time 1.393e-06/0.287, allocations: 0 / 444.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.3217, allocations: 4.386 MB / 448.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.82, allocations: 7.031 kB / 448.7 MB, free: 4.859 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.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: 14.346326996106654]