Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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.001573/0.001573, 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.001442/0.001442, allocations: 187.7 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.386/1.386, allocations: 225.7 MB / 252.5 MB, free: 12.85 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.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 43.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2488, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003106/0.2519, allocations: 1.805 MB / 424.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.2531, allocations: 0.5882 MB / 424.9 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.647e-05/0.2532, allocations: 7.938 kB / 425 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.2533, allocations: 31.61 kB / 425 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.2534, allocations: 31.72 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002982/0.2537, allocations: 83.86 kB / 425.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.254, allocations: 179.4 kB / 425.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.2542, allocations: 50.59 kB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.2543, allocations: 75.7 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.2544, allocations: 83.53 kB / 425.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.149e-05/0.2545, allocations: 12 kB / 425.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.103e-05/0.2545, allocations: 27.98 kB / 425.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.353e-05/0.2546, allocations: 43.84 kB / 425.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.819e-05/0.2547, allocations: 71.59 kB / 425.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.2549, allocations: 201.1 kB / 425.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.2549, allocations: 4 kB / 425.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2549, allocations: 0 / 425.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.255, allocations: 0 / 425.8 MB, free: 11.11 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.0008395/0.2558, allocations: 441.2 kB / 426.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2558, allocations: 12.03 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.739e-05/0.2559, allocations: 50.67 kB / 426.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.2559, allocations: 28.8 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/0.2562, allocations: 182.1 kB / 426.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.2563, allocations: 20.11 kB / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.2563, allocations: 16 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.2567, allocations: 205.9 kB / 426.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.2567, allocations: 0 / 426.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.2567, allocations: 8 kB / 426.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.2567, allocations: 4 kB / 426.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.2571, allocations: 143.8 kB / 426.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.2581, allocations: 0.7262 MB / 427.6 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.2587, allocations: 182.6 kB / 427.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.2589, allocations: 52.83 kB / 427.9 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.2589, allocations: 7.938 kB / 427.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.2592, allocations: 156.5 kB / 428 MB, free: 8.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.2592, allocations: 0 / 428 MB, free: 8.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005912/0.2598, allocations: 257.2 kB / 428.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.2598, allocations: 85.05 kB / 428.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.26, allocations: 226.9 kB / 428.6 MB, free: 8.148 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.2601, allocations: 29.7 kB / 428.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.2602, allocations: 136.4 kB / 428.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.2602, allocations: 35.73 kB / 428.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.819e-05/0.2603, allocations: 61.62 kB / 428.8 MB, free: 7.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2604, allocations: 330.8 kB / 429.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.2606, allocations: 75.89 kB / 429.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.2608, allocations: 136.5 kB / 429.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.2612, allocations: 212.4 kB / 429.6 MB, free: 7.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.2612, allocations: 0 / 429.6 MB, free: 7.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004559/0.2616, allocations: 249.3 kB / 429.8 MB, free: 6.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.2616, allocations: 8 kB / 429.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2617, allocations: 0 / 429.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.2617, allocations: 4 kB / 429.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.2618, allocations: 39.86 kB / 429.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.2619, allocations: 7.984 kB / 429.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.262, allocations: 32.12 kB / 429.9 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.262, allocations: 15.94 kB / 429.9 MB, free: 6.711 MB / 334.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.0001466/0.2622, allocations: 147.8 kB / 430.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.2622, allocations: 19.86 kB / 430.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002561/0.2625, allocations: 135 kB / 430.2 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.2625, allocations: 3.938 kB / 430.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.2625, allocations: 4 kB / 430.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.2625, allocations: 0 / 430.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006049/0.2631, allocations: 433.9 kB / 430.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2631, allocations: 0 / 430.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.2632, allocations: 27.84 kB / 430.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.2632, allocations: 4.312 kB / 430.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.2632, allocations: 96 / 430.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2632, allocations: 7.938 kB / 430.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2632, allocations: 4 kB / 430.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004283/0.2637, allocations: 276.2 kB / 431 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.194e-05/0.2637, allocations: 27.72 kB / 431 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.2637, allocations: 11.98 kB / 431 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.2639, allocations: 11.98 kB / 431 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.264, allocations: 23.97 kB / 431 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.264, allocations: 7.984 kB / 431.1 MB, free: 5.504 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001289/0.2641, allocations: 144.6 kB / 431.2 MB, free: 5.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2641, allocations: 4 kB / 431.2 MB, free: 5.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002851/0.2644, allocations: 35.95 kB / 431.2 MB, free: 5.324 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: 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.0008209/0.2652, allocations: 0.8379 MB / 432.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003929/0.2656, allocations: 159.8 kB / 432.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2656, allocations: 0 / 432.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.2658, allocations: 75.89 kB / 432.3 MB, free: 4.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.2661, allocations: 36.45 kB / 432.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002755/0.2689, allocations: 2.236 MB / 434.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.269, allocations: 124.9 kB / 434.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.2691, allocations: 29.62 kB / 434.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2693, allocations: 67.41 kB / 434.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2693, allocations: 4 kB / 434.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03045/0.2997, allocations: 4.828 MB / 439.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.82, allocations: 7.922 kB / 439.6 MB, free: 12.89 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.190708952955902]