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.001338/0.001338, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001424/0.001424, allocations: 215.3 kB / 23.73 MB, free: 4.156 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001533/0.001533, allocations: 51.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2739, allocations: 53.36 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003101/0.277, allocations: 1.815 MB / 432.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2782, allocations: 0.6582 MB / 433.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.162e-05/0.2783, allocations: 7.938 kB / 433.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.516e-05/0.2784, allocations: 27.66 kB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.2785, allocations: 35.67 kB / 433.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.2788, allocations: 99.77 kB / 433.7 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002195/0.2791, allocations: 167.5 kB / 433.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.2792, allocations: 62.58 kB / 433.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.2794, allocations: 91.62 kB / 434 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.2795, allocations: 79.55 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.2795, allocations: 12 kB / 434.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.965e-05/0.2796, allocations: 24 kB / 434.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.437e-05/0.2796, allocations: 51.77 kB / 434.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.469e-05/0.2797, allocations: 71.59 kB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002687/0.28, allocations: 205.1 kB / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.28, allocations: 0 / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.43e-06/0.28, allocations: 3.984 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.28, allocations: 4 kB / 434.5 MB, free: 3.219 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.0008137/0.2808, allocations: 445.2 kB / 434.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.872e-05/0.2809, allocations: 8.031 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.926e-05/0.2809, allocations: 46.73 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.2811, allocations: 36.78 kB / 435 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.2813, allocations: 191.8 kB / 435.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.2814, allocations: 12.38 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.069e-05/0.2814, allocations: 20.38 kB / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003757/0.2818, allocations: 214.4 kB / 435.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.2818, allocations: 0 / 435.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.2818, allocations: 4 kB / 435.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.2818, allocations: 8 kB / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003305/0.2821, allocations: 147.8 kB / 435.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.2832, allocations: 0.7068 MB / 436.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006112/0.2838, allocations: 186.6 kB / 436.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.2839, allocations: 60.81 kB / 436.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.284, allocations: 7.938 kB / 436.5 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.2842, allocations: 149 kB / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.2842, allocations: 0 / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000565/0.2848, allocations: 253.3 kB / 436.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.2849, allocations: 85.11 kB / 437 MB, free: 496 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.2851, allocations: 231 kB / 437.2 MB, free: 256 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.2851, allocations: 29.7 kB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/0.2852, allocations: 132.5 kB / 437.4 MB, free: 84 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.262e-05/0.2853, allocations: 43.69 kB / 437.4 MB, free: 40 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.875e-05/0.2854, allocations: 53.64 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002207/0.2856, allocations: 334.8 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.2857, allocations: 71.89 kB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.286, allocations: 136.5 kB / 438 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.2863, allocations: 212.3 kB / 438.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2863, allocations: 0 / 438.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004832/0.2868, allocations: 257.2 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.2868, allocations: 4 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2868, allocations: 4 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2869, allocations: 7.984 kB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.287, allocations: 31.92 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.287, allocations: 4 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.2872, allocations: 44.05 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.2872, allocations: 15.94 kB / 438.6 MB, free: 14.8 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.0001667/0.2874, allocations: 151.7 kB / 438.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.82e-05/0.2874, allocations: 19.86 kB / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002602/0.2877, allocations: 131 kB / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2877, allocations: 4 kB / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2877, allocations: 0 / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2877, allocations: 3.938 kB / 438.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006707/0.2884, allocations: 433.9 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2884, allocations: 0 / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.2885, allocations: 20.3 kB / 439.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2885, allocations: 0 / 439.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.2885, allocations: 15.92 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.2885, allocations: 0 / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2885, allocations: 0 / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004665/0.289, allocations: 295.6 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.124e-05/0.289, allocations: 11.91 kB / 439.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.2891, allocations: 15.94 kB / 439.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.2892, allocations: 15.97 kB / 439.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.209e-05/0.2893, allocations: 23.97 kB / 439.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.2894, allocations: 7.984 kB / 439.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001533/0.2895, allocations: 148.6 kB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2895, allocations: 0 / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003167/0.2898, allocations: 43.89 kB / 439.9 MB, free: 13.41 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.0008711/0.2907, allocations: 0.8387 MB / 440.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004312/0.2911, allocations: 159.8 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2911, allocations: 3.938 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.2913, allocations: 71.89 kB / 441 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.2917, allocations: 28.48 kB / 441 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003056/0.2947, allocations: 2.24 MB / 443.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/0.2949, allocations: 128.9 kB / 443.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.295, allocations: 33.61 kB / 443.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.2951, allocations: 67.36 kB / 443.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2951, allocations: 0 / 443.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03825/0.3334, allocations: 4.864 MB / 448.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.04, allocations: 6.172 kB / 448.3 MB, free: 4.938 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.477937354706228]