Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009487/0.0009487, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008848/0.0008848, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9048/0.9048, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.759e-05/1.885e-05, allocations: 3.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002165/0.002184, allocations: 1.814 MB / 326.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009356/0.00312, allocations: 0.6699 MB / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.866e-05/0.003208, allocations: 7.938 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.00332, allocations: 27.67 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001136/0.003433, allocations: 35.66 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.0037, allocations: 95.69 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001795/0.00388, allocations: 175.4 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.004017, allocations: 54.98 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.004184, allocations: 119.6 kB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.004304, allocations: 67.78 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.004328, allocations: 12 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.858e-05/0.004396, allocations: 27.98 kB / 327.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.397e-05/0.00445, allocations: 47.83 kB / 327.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.316e-05/0.004503, allocations: 55.83 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.004738, allocations: 211.2 kB / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.004742, allocations: 0 / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.004743, allocations: 0 / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.004748, allocations: 0 / 327.9 MB, free: 12.47 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.0006284/0.005376, allocations: 449 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.00542, allocations: 15.97 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.005463, allocations: 50.73 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.005568, allocations: 28.8 kB / 328.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/0.005774, allocations: 187.3 kB / 328.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.005793, allocations: 20.31 kB / 328.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.005811, allocations: 16.38 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.006064, allocations: 214.4 kB / 328.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.006072, allocations: 192 / 328.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.006087, allocations: 8.125 kB / 328.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.006105, allocations: 11.98 kB / 328.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.006294, allocations: 139.7 kB / 329 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000661/0.006955, allocations: 0.7185 MB / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003525/0.007307, allocations: 174.7 kB / 329.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.76e-05/0.007385, allocations: 60.75 kB / 330 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.007415, allocations: 8 kB / 330 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001721/0.007587, allocations: 143.8 kB / 330.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.007588, allocations: 4 kB / 330.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003569/0.007945, allocations: 249.3 kB / 330.4 MB, free: 9.836 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.007988, allocations: 93.03 kB / 330.5 MB, free: 9.727 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.008124, allocations: 219.1 kB / 330.7 MB, free: 9.504 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.008139, allocations: 29.69 kB / 330.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.976e-05/0.008208, allocations: 144.3 kB / 330.8 MB, free: 9.324 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.008233, allocations: 39.69 kB / 330.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-05/0.008288, allocations: 53.7 kB / 330.9 MB, free: 9.227 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.081e-05/0.008368, allocations: 338.8 kB / 331.3 MB, free: 8.887 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.605e-05/0.008455, allocations: 67.95 kB / 331.3 MB, free: 8.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.008562, allocations: 136.5 kB / 331.5 MB, free: 8.656 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.008763, allocations: 212.3 kB / 331.7 MB, free: 8.418 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.008765, allocations: 0 / 331.7 MB, free: 8.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002513/0.009016, allocations: 253.2 kB / 331.9 MB, free: 8.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.00903, allocations: 7.984 kB / 331.9 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.009036, allocations: 8.25 kB / 331.9 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.009048, allocations: 4 kB / 331.9 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.536e-05/0.009134, allocations: 31.92 kB / 332 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.009138, allocations: 4 kB / 332 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.916e-05/0.009217, allocations: 35.86 kB / 332 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.009228, allocations: 8 kB / 332 MB, free: 8.066 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.059e-05/0.009318, allocations: 155.7 kB / 332.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.805e-05/0.009337, allocations: 19.86 kB / 332.2 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.009493, allocations: 135 kB / 332.3 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.009496, allocations: 4 kB / 332.3 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.0095, allocations: 0 / 332.3 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.009503, allocations: 0 / 332.3 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003598/0.009863, allocations: 437.8 kB / 332.8 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.009866, allocations: 4 kB / 332.8 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.099e-05/0.009917, allocations: 19.98 kB / 332.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.009919, allocations: 320 / 332.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.00993, allocations: 11.92 kB / 332.8 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.009933, allocations: 8 kB / 332.8 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.009934, allocations: 0 / 332.8 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002235/0.01016, allocations: 292.1 kB / 333.1 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.333e-05/0.01017, allocations: 11.91 kB / 333.1 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.01019, allocations: 11.92 kB / 333.1 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.173e-05/0.01026, allocations: 15.98 kB / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.451e-05/0.01032, allocations: 23.91 kB / 333.1 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.01033, allocations: 7.984 kB / 333.2 MB, free: 6.855 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.653e-05/0.01041, allocations: 148.6 kB / 333.3 MB, free: 6.711 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01041, allocations: 4 kB / 333.3 MB, free: 6.707 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001959/0.0106, allocations: 43.89 kB / 333.3 MB, free: 6.664 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.0004443/0.01105, allocations: 0.8224 MB / 334.2 MB, free: 5.812 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002404/0.01129, allocations: 168.1 kB / 334.3 MB, free: 5.648 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01129, allocations: 4.062 kB / 334.3 MB, free: 5.645 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.687e-05/0.01139, allocations: 71.89 kB / 334.4 MB, free: 5.574 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.01162, allocations: 35.91 kB / 334.4 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.01326, allocations: 2.254 MB / 336.7 MB, free: 3.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.806e-05/0.01333, allocations: 120.9 kB / 336.8 MB, free: 2.996 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.891e-05/0.0134, allocations: 33.62 kB / 336.8 MB, free: 2.965 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.877e-05/0.01348, allocations: 68.75 kB / 336.9 MB, free: 2.898 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01348, allocations: 0 / 336.9 MB, free: 2.898 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.0306, allocations: 4.97 MB / 341.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.94/6.971, allocations: 2.812 kB / 341.9 MB, free: 14.04 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.648499202914536]