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.001664/0.001664, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.002048/0.002048, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.447/1.447, allocations: 230.2 MB / 254.5 MB, free: 15.24 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.001845/0.001845, allocations: 67.89 kB / 373.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.113, allocations: 53.32 MB / 426.7 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003207/0.1162, allocations: 1.853 MB / 428.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.1175, allocations: 0.705 MB / 429.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.945e-05/0.1176, allocations: 4 kB / 429.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.1177, allocations: 27.66 kB / 429.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.1179, allocations: 31.67 kB / 429.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.1182, allocations: 91.77 kB / 429.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.1184, allocations: 179.4 kB / 429.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.1186, allocations: 58.64 kB / 429.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.1188, allocations: 79.7 kB / 429.7 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.1189, allocations: 91.53 kB / 429.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.119, allocations: 16 kB / 429.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.781e-05/0.119, allocations: 27.98 kB / 429.8 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.133e-05/0.1191, allocations: 43.83 kB / 429.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.789e-05/0.1192, allocations: 87.47 kB / 429.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.1195, allocations: 199.1 kB / 430.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1195, allocations: 4 kB / 430.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1195, allocations: 3.938 kB / 430.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1195, allocations: 4 kB / 430.1 MB, free: 1.469 MB / 350.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.0009808/0.1205, allocations: 0.5101 MB / 430.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1205, allocations: 12.03 kB / 430.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.94e-05/0.1206, allocations: 46.73 kB / 430.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.1208, allocations: 36.78 kB / 430.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.1211, allocations: 260.8 kB / 431 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.1211, allocations: 8.375 kB / 431 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.1211, allocations: 16.38 kB / 431 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003901/0.1215, allocations: 213.4 kB / 431.2 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.1215, allocations: 0 / 431.2 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.1216, allocations: 4 kB / 431.2 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.1216, allocations: 12 kB / 431.3 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.1219, allocations: 143.8 kB / 431.4 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.123, allocations: 0.7818 MB / 432.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005993/0.1236, allocations: 190.6 kB / 432.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.1237, allocations: 52.83 kB / 432.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.1238, allocations: 4 kB / 432.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.1241, allocations: 146.8 kB / 432.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.1241, allocations: 0 / 432.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005834/0.1246, allocations: 245.4 kB / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.577e-05/0.1247, allocations: 85.05 kB / 432.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.1249, allocations: 223.1 kB / 433.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.125, allocations: 29.7 kB / 433.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.1251, allocations: 148.4 kB / 433.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.533e-05/0.1251, allocations: 31.73 kB / 433.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-05/0.1252, allocations: 65.64 kB / 433.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1254, allocations: 334.8 kB / 433.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.1255, allocations: 67.95 kB / 433.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.1257, allocations: 128.5 kB / 433.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.1261, allocations: 212.4 kB / 434.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1261, allocations: 0 / 434.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004477/0.1265, allocations: 249.2 kB / 434.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1265, allocations: 8.25 kB / 434.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1265, allocations: 8 kB / 434.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.1265, allocations: 0 / 434.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.1267, allocations: 39.92 kB / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.1267, allocations: 7.984 kB / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.1269, allocations: 40.08 kB / 434.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.1269, allocations: 7.984 kB / 434.5 MB, free: 12.83 MB / 366.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.0001557/0.1271, allocations: 156 kB / 434.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.1271, allocations: 19.91 kB / 434.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002674/0.1274, allocations: 139.3 kB / 434.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1274, allocations: 0 / 434.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1274, allocations: 0 / 434.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.1274, allocations: 7.938 kB / 434.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006545/0.128, allocations: 482.2 kB / 435.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.128, allocations: 0 / 435.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.1281, allocations: 19.98 kB / 435.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1281, allocations: 4 kB / 435.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1282, allocations: 3.938 kB / 435.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.1282, allocations: 3.938 kB / 435.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1282, allocations: 0 / 435.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004286/0.1286, allocations: 288.2 kB / 435.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.1287, allocations: 96.95 kB / 435.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.1287, allocations: 7.938 kB / 435.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.1289, allocations: 19.97 kB / 435.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.543e-05/0.1289, allocations: 19.98 kB / 435.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.129, allocations: 7.984 kB / 435.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001332/0.1291, allocations: 144.7 kB / 435.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1291, allocations: 0 / 435.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.1294, allocations: 39.95 kB / 435.9 MB, free: 11.29 MB / 366.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.0008205/0.1302, allocations: 0.8359 MB / 436.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003995/0.1306, allocations: 167.7 kB / 436.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1306, allocations: 4 kB / 436.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000176/0.1308, allocations: 71.89 kB / 437 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.1311, allocations: 32.56 kB / 437 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.1339, allocations: 2.258 MB / 439.2 MB, free: 7.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.1343, allocations: 0.732 MB / 440 MB, free: 6.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.1344, allocations: 37.52 kB / 440 MB, free: 6.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.1345, allocations: 63.42 kB / 440.1 MB, free: 6.891 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1345, allocations: 0 / 440.1 MB, free: 6.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/0.1696, allocations: 4.147 MB / 444.2 MB, free: 2.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.137, allocations: 13.83 kB / 444.2 MB, free: 2.801 MB / 366.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.724975392222404]