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.0008867/0.0008867, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008711/0.0008711, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8919/0.8919, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.182e-06/1.182e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.42e-05/1.538e-05, allocations: 5.094 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00199/0.002005, allocations: 1.813 MB / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008186/0.002824, allocations: 0.6698 MB / 327 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.878e-05/0.002912, allocations: 7.938 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.003032, allocations: 35.59 kB / 327.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.003142, allocations: 27.73 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002595/0.003402, allocations: 95.69 kB / 327.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001935/0.003595, allocations: 191.3 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.003738, allocations: 47 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.00389, allocations: 119.6 kB / 327.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.004002, allocations: 63.78 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.004028, allocations: 12 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.449e-05/0.004092, allocations: 24 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.004143, allocations: 47.83 kB / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.105e-05/0.004194, allocations: 59.77 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.004402, allocations: 211.2 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.004405, allocations: 0 / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.004406, allocations: 0 / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.004415, allocations: 4 kB / 328 MB, free: 12.5 MB / 298.7 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.0006064/0.005021, allocations: 449.5 kB / 328.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.005054, allocations: 8.031 kB / 328.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.99e-05/0.005094, allocations: 50.73 kB / 328.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.154e-05/0.005186, allocations: 32.8 kB / 328.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.005394, allocations: 187 kB / 328.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.005412, allocations: 16.38 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.005431, allocations: 16.38 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.00568, allocations: 206.5 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.00569, allocations: 4.125 kB / 328.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.005706, allocations: 16.11 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.005723, allocations: 4 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.005919, allocations: 143.7 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.006585, allocations: 0.7146 MB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.006938, allocations: 182.6 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.1e-05/0.007019, allocations: 60.77 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.007048, allocations: 11.98 kB / 330 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001654/0.007214, allocations: 145 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.072e-06/0.007215, allocations: 0 / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003769/0.007592, allocations: 249.3 kB / 330.4 MB, free: 9.871 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.007638, allocations: 85.09 kB / 330.5 MB, free: 9.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.008025, allocations: 227.1 kB / 330.7 MB, free: 9.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.00804, allocations: 25.7 kB / 330.8 MB, free: 9.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.604e-05/0.008106, allocations: 140.4 kB / 330.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.008131, allocations: 47.61 kB / 330.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.008188, allocations: 57.69 kB / 331 MB, free: 9.258 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.005e-05/0.008268, allocations: 334.8 kB / 331.3 MB, free: 8.922 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.503e-05/0.008363, allocations: 63.95 kB / 331.4 MB, free: 8.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.008479, allocations: 140.5 kB / 331.5 MB, free: 8.691 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/0.008681, allocations: 208.4 kB / 331.7 MB, free: 8.457 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.008683, allocations: 0 / 331.7 MB, free: 8.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002614/0.008944, allocations: 257.7 kB / 332 MB, free: 8.199 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.008956, allocations: 4 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.008961, allocations: 4 kB / 332 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.008973, allocations: 4 kB / 332 MB, free: 8.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.735e-05/0.009061, allocations: 39.86 kB / 332 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.009068, allocations: 7.922 kB / 332 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.109e-05/0.009149, allocations: 35.86 kB / 332.1 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.009159, allocations: 8 kB / 332.1 MB, free: 8.098 MB / 298.7 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 8.997e-05/0.009249, allocations: 155.8 kB / 332.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.009266, allocations: 19.86 kB / 332.3 MB, free: 7.918 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.009427, allocations: 127.1 kB / 332.4 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.009431, allocations: 4 kB / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.009434, allocations: 0 / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.009438, allocations: 0 / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003951/0.009833, allocations: 441.7 kB / 332.8 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.009834, allocations: 4 kB / 332.8 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.634e-05/0.009891, allocations: 27.97 kB / 332.8 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.009893, allocations: 0 / 332.8 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.009904, allocations: 4 kB / 332.8 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.009906, allocations: 0 / 332.8 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.009907, allocations: 0 / 332.8 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.01015, allocations: 298.8 kB / 333.1 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.481e-05/0.01016, allocations: 11.91 kB / 333.1 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.01019, allocations: 7.984 kB / 333.2 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.003e-05/0.01027, allocations: 15.98 kB / 333.2 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.21e-05/0.01033, allocations: 27.91 kB / 333.2 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.01034, allocations: 7.984 kB / 333.2 MB, free: 6.895 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.759e-05/0.01042, allocations: 148.6 kB / 333.4 MB, free: 6.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01042, allocations: 0 / 333.4 MB, free: 6.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000194/0.01061, allocations: 43.89 kB / 333.4 MB, free: 6.707 MB / 298.7 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.0004537/0.01107, allocations: 0.8224 MB / 334.2 MB, free: 5.855 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002557/0.01132, allocations: 171.7 kB / 334.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.01132, allocations: 0 / 334.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.01143, allocations: 75.89 kB / 334.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.01167, allocations: 32.23 kB / 334.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.01347, allocations: 2.256 MB / 336.7 MB, free: 3.172 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.726e-05/0.01355, allocations: 128.9 kB / 336.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.828e-05/0.01362, allocations: 29.62 kB / 336.9 MB, free: 3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.156e-05/0.0137, allocations: 68.47 kB / 337 MB, free: 2.934 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.0137, allocations: 288 / 337 MB, free: 2.934 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.03195, allocations: 4.973 MB / 341.9 MB, free: 14.1 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.828/6.86, allocations: 5.078 kB / 341.9 MB, free: 14.1 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/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: 8.532400571741164]