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.0008261/0.0008261, allocations: 76.08 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.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.0008769/0.0008769, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8845/0.8845, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.753e-06/1.753e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.243e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002315/0.002338, allocations: 1.775 MB / 320.2 MB, free: 4.555 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008429/0.003181, allocations: 0.5959 MB / 320.8 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.003294, allocations: 7.938 kB / 320.8 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.003423, allocations: 31.66 kB / 320.8 MB, free: 3.918 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.003561, allocations: 35.66 kB / 320.9 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002882/0.003849, allocations: 87.64 kB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.004027, allocations: 187.3 kB / 321.1 MB, free: 3.613 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.004173, allocations: 54.97 kB / 321.2 MB, free: 3.551 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.004304, allocations: 103.7 kB / 321.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.004438, allocations: 67.77 kB / 321.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.088e-05/0.004468, allocations: 16 kB / 321.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.742e-05/0.004536, allocations: 20 kB / 321.4 MB, free: 3.348 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.76e-05/0.004593, allocations: 51.81 kB / 321.4 MB, free: 3.297 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.39e-05/0.004647, allocations: 55.78 kB / 321.5 MB, free: 3.242 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.004864, allocations: 207.3 kB / 321.7 MB, free: 3.039 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.004867, allocations: 0 / 321.7 MB, free: 3.039 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.004868, allocations: 0 / 321.7 MB, free: 3.039 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.004872, allocations: 4 kB / 321.7 MB, free: 3.035 MB / 282.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.000839/0.005711, allocations: 449.2 kB / 322.1 MB, free: 2.566 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.005756, allocations: 8.922 kB / 322.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.135e-05/0.005797, allocations: 46.73 kB / 322.2 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.584e-05/0.005843, allocations: 24.8 kB / 322.2 MB, free: 2.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.006062, allocations: 177.4 kB / 322.4 MB, free: 2.281 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.006081, allocations: 12.38 kB / 322.4 MB, free: 2.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.006101, allocations: 20.36 kB / 322.4 MB, free: 2.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.006392, allocations: 214.4 kB / 322.6 MB, free: 2.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.006402, allocations: 3.984 kB / 322.6 MB, free: 2.016 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.006418, allocations: 8 kB / 322.7 MB, free: 2.008 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.006437, allocations: 4 kB / 322.7 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.006637, allocations: 139.8 kB / 322.8 MB, free: 1.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007187/0.007356, allocations: 0.7146 MB / 323.5 MB, free: 1.098 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003572/0.007713, allocations: 178.7 kB / 323.7 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.22e-05/0.007795, allocations: 60.83 kB / 323.7 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.007824, allocations: 0 / 323.7 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001672/0.007991, allocations: 156.4 kB / 323.9 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.007993, allocations: 0 / 323.9 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003652/0.008358, allocations: 249.4 kB / 324.1 MB, free: 444 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.008402, allocations: 81.48 kB / 324.2 MB, free: 344 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.008545, allocations: 230.8 kB / 324.4 MB, free: 104 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.008563, allocations: 29.7 kB / 324.5 MB, free: 68 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.925e-05/0.008652, allocations: 132.4 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.00868, allocations: 47.59 kB / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-05/0.008739, allocations: 57.7 kB / 324.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.94e-05/0.008828, allocations: 330.8 kB / 325 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.712e-05/0.008925, allocations: 67.95 kB / 325.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.00905, allocations: 141.1 kB / 325.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.009584, allocations: 212.3 kB / 325.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.009587, allocations: 0 / 325.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002809/0.009868, allocations: 245.5 kB / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.009883, allocations: 15.98 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.00989, allocations: 4 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.009901, allocations: 0 / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.237e-05/0.009994, allocations: 36.23 kB / 325.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.01, allocations: 4 kB / 325.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.01011, allocations: 47.73 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.01012, allocations: 4 kB / 325.8 MB, free: 14.66 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 9.463e-05/0.01021, allocations: 160.1 kB / 325.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.976e-05/0.01023, allocations: 19.86 kB / 326 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.01039, allocations: 135 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.0104, allocations: 0 / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.0104, allocations: 4 kB / 326.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.01041, allocations: 3.938 kB / 326.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003781/0.01078, allocations: 429.5 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01079, allocations: 0 / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.39e-05/0.01084, allocations: 19.98 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.01084, allocations: 4 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.01086, allocations: 11.92 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.01086, allocations: 4 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01086, allocations: 0 / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002364/0.0111, allocations: 280.3 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.777e-05/0.01111, allocations: 27.8 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.01113, allocations: 3.938 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.906e-05/0.01121, allocations: 23.97 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.01127, allocations: 15.97 kB / 326.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.01128, allocations: 15.98 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.553e-05/0.01136, allocations: 144.6 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01136, allocations: 0 / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.01156, allocations: 35.94 kB / 327.1 MB, free: 13.27 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.0004578/0.01201, allocations: 0.834 MB / 327.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.01225, allocations: 160 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.01226, allocations: 0 / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.01236, allocations: 75.89 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.01258, allocations: 31.2 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.01428, allocations: 2.239 MB / 330.4 MB, free: 9.758 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.182e-05/0.01436, allocations: 124.9 kB / 330.6 MB, free: 9.613 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.833e-05/0.01443, allocations: 33.61 kB / 330.6 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.873e-05/0.01451, allocations: 68.47 kB / 330.7 MB, free: 9.516 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.01451, allocations: 0 / 330.7 MB, free: 9.516 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01698/0.03149, allocations: 4.955 MB / 335.6 MB, free: 4.707 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.901/6.932, allocations: 7.641 kB / 335.6 MB, free: 4.703 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/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: 8.602412510663271]