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.00133/0.00133, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001686/0.001686, allocations: 214.9 kB / 23.74 MB, free: 4.672 MB / 14.72 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 1.413/1.413, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001916/0.001916, allocations: 63.91 kB / 377.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2312, allocations: 53.4 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003262/0.2345, allocations: 1.859 MB / 433 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.2359, allocations: 0.705 MB / 433.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.236, allocations: 7.938 kB / 433.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.2361, allocations: 35.59 kB / 433.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.2363, allocations: 23.75 kB / 433.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.2366, allocations: 103.7 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003151/0.2369, allocations: 183.4 kB / 434.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.2371, allocations: 46.94 kB / 434.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.2373, allocations: 91.62 kB / 434.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.2375, allocations: 83.61 kB / 434.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.2375, allocations: 12 kB / 434.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.729e-05/0.2376, allocations: 31.98 kB / 434.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.023e-05/0.2377, allocations: 43.84 kB / 434.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.771e-05/0.2378, allocations: 83.47 kB / 434.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003132/0.2381, allocations: 215.4 kB / 434.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2381, allocations: 0 / 434.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2381, allocations: 0 / 434.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.2381, allocations: 0 / 434.7 MB, free: 3.152 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.0009379/0.239, allocations: 445.2 kB / 435.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2391, allocations: 12.03 kB / 435.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.741e-05/0.2391, allocations: 46.73 kB / 435.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.2393, allocations: 36.78 kB / 435.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.2396, allocations: 195.4 kB / 435.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.2396, allocations: 12.38 kB / 435.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.2396, allocations: 16.38 kB / 435.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004062/0.24, allocations: 221.7 kB / 435.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2401, allocations: 0 / 435.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.2401, allocations: 8 kB / 435.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.2401, allocations: 4 kB / 435.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003274/0.2404, allocations: 143.8 kB / 435.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.2415, allocations: 0.7534 MB / 436.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006085/0.2422, allocations: 190.6 kB / 436.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.2423, allocations: 60.77 kB / 436.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.2423, allocations: 0 / 436.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002746/0.2426, allocations: 148.1 kB / 436.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.256e-06/0.2426, allocations: 3.984 kB / 436.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006143/0.2432, allocations: 245.4 kB / 437.2 MB, free: 488 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.2433, allocations: 85.05 kB / 437.3 MB, free: 384 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.2435, allocations: 224.1 kB / 437.5 MB, free: 152 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.2435, allocations: 29.7 kB / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.2437, allocations: 140.5 kB / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.099e-05/0.2437, allocations: 43.72 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.973e-05/0.2438, allocations: 61.64 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.2439, allocations: 334.6 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.2441, allocations: 67.95 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.2443, allocations: 133.2 kB / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003527/0.2446, allocations: 208.4 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2447, allocations: 0 / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004646/0.2451, allocations: 253.3 kB / 438.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.2451, allocations: 8 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2451, allocations: 0 / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.2452, allocations: 4 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.2453, allocations: 39.92 kB / 438.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.2453, allocations: 11.97 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.2455, allocations: 31.77 kB / 438.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.2455, allocations: 12 kB / 438.8 MB, free: 14.71 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.0001539/0.2457, allocations: 152.4 kB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.203e-05/0.2457, allocations: 15.91 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002642/0.246, allocations: 135.4 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.246, allocations: 0 / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.246, allocations: 0 / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.246, allocations: 8.344 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006531/0.2467, allocations: 461.3 kB / 439.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.2467, allocations: 4 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.2468, allocations: 19.92 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.2468, allocations: 0 / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.2468, allocations: 7.938 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2468, allocations: 0 / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2468, allocations: 3.938 kB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004608/0.2473, allocations: 292.2 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.058e-05/0.2473, allocations: 15.84 kB / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.2473, allocations: 11.94 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.2475, allocations: 11.98 kB / 439.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.519e-05/0.2476, allocations: 27.95 kB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.2476, allocations: 4 kB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001463/0.2477, allocations: 147.5 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2477, allocations: 7.938 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.2481, allocations: 47.88 kB / 440.2 MB, free: 13.28 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.0008425/0.2489, allocations: 0.8185 MB / 441 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004059/0.2493, allocations: 163.7 kB / 441.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2493, allocations: 0 / 441.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.2495, allocations: 75.89 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.2498, allocations: 28.47 kB / 441.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002902/0.2527, allocations: 2.24 MB / 443.5 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.2531, allocations: 0.7398 MB / 444.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.2532, allocations: 33.61 kB / 444.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.2533, allocations: 67.41 kB / 444.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2533, allocations: 0 / 444.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.2865, allocations: 4.389 MB / 448.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.28, allocations: 8.062 kB / 448.7 MB, free: 4.625 MB / 350.1 MB " [Timeout remaining time 649] (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/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_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: 13.615939890034497]