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.001939/0.001939, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002077/0.002077, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.521/1.521, allocations: 230.4 MB / 254 MB, free: 15.04 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.001817/0.001817, allocations: 63.89 kB / 373 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1049, allocations: 53.38 MB / 426.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003441/0.1084, allocations: 1.853 MB / 428.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.1098, allocations: 0.7011 MB / 428.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.1099, allocations: 7.938 kB / 428.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.11, allocations: 35.53 kB / 429 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001373/0.1102, allocations: 27.73 kB / 429 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003589/0.1105, allocations: 95.77 kB / 429.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002705/0.1108, allocations: 183.4 kB / 429.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.111, allocations: 50.66 kB / 429.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.1112, allocations: 79.7 kB / 429.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.1114, allocations: 95.53 kB / 429.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.459e-05/0.1114, allocations: 12 kB / 429.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.843e-05/0.1115, allocations: 27.98 kB / 429.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.945e-05/0.1116, allocations: 47.84 kB / 429.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.1117, allocations: 83.47 kB / 429.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.1121, allocations: 207 kB / 429.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1121, allocations: 0 / 429.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1121, allocations: 3.938 kB / 429.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.1121, allocations: 0 / 429.8 MB, free: 1.137 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.001133/0.1132, allocations: 0.5101 MB / 430.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.1133, allocations: 8.031 kB / 430.4 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.919e-05/0.1133, allocations: 54.72 kB / 430.4 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.1135, allocations: 40.78 kB / 430.5 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.1139, allocations: 244.8 kB / 430.7 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.1139, allocations: 16.38 kB / 430.7 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.1139, allocations: 12.38 kB / 430.7 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/0.1144, allocations: 221.4 kB / 430.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1144, allocations: 0 / 430.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.1144, allocations: 8 kB / 430.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.1145, allocations: 4 kB / 431 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003441/0.1148, allocations: 143.8 kB / 431.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.116, allocations: 0.7818 MB / 431.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006394/0.1166, allocations: 182.6 kB / 432.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.1168, allocations: 64.75 kB / 432.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.106e-05/0.1168, allocations: 4 kB / 432.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.1171, allocations: 142.4 kB / 432.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.1171, allocations: 0 / 432.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006104/0.1178, allocations: 241.7 kB / 432.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.1178, allocations: 89.14 kB / 432.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.118, allocations: 227 kB / 432.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.1181, allocations: 29.7 kB / 432.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.1182, allocations: 144.4 kB / 433 MB, free: 13.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.1182, allocations: 39.73 kB / 433 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.983e-05/0.1183, allocations: 61.64 kB / 433.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1185, allocations: 338.8 kB / 433.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.1186, allocations: 63.95 kB / 433.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.1188, allocations: 132.5 kB / 433.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.1192, allocations: 208.4 kB / 433.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1192, allocations: 4 kB / 433.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004935/0.1197, allocations: 253.3 kB / 434.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1197, allocations: 4 kB / 434.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1197, allocations: 4 kB / 434.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.1198, allocations: 4 kB / 434.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1199, allocations: 39.91 kB / 434.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.1199, allocations: 0 / 434.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.1201, allocations: 39.77 kB / 434.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.1201, allocations: 11.98 kB / 434.2 MB, free: 12.49 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.0001689/0.1203, allocations: 152.1 kB / 434.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.1204, allocations: 19.89 kB / 434.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002834/0.1206, allocations: 127 kB / 434.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1206, allocations: 4 kB / 434.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1206, allocations: 3.984 kB / 434.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1207, allocations: 3.938 kB / 434.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006992/0.1214, allocations: 482.3 kB / 434.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1214, allocations: 0 / 434.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.1215, allocations: 20.23 kB / 434.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1215, allocations: 4 kB / 435 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.1215, allocations: 15.92 kB / 435 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1215, allocations: 4.188 kB / 435 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1215, allocations: 0 / 435 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004641/0.122, allocations: 289.7 kB / 435.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.866e-05/0.122, allocations: 92.95 kB / 435.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.1221, allocations: 7.938 kB / 435.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.1222, allocations: 19.97 kB / 435.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.417e-05/0.1223, allocations: 19.97 kB / 435.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.1223, allocations: 4 kB / 435.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.1225, allocations: 152.6 kB / 435.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1225, allocations: 8 kB / 435.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1228, allocations: 39.94 kB / 435.6 MB, free: 10.95 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.0008734/0.1237, allocations: 0.8302 MB / 436.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000421/0.1241, allocations: 167.7 kB / 436.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1241, allocations: 0 / 436.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.1243, allocations: 67.89 kB / 436.7 MB, free: 9.855 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.1246, allocations: 42.28 kB / 436.7 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.1276, allocations: 2.237 MB / 438.9 MB, free: 7.434 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.128, allocations: 0.7398 MB / 439.7 MB, free: 6.668 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.1282, allocations: 33.52 kB / 439.7 MB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.1283, allocations: 67.41 kB / 439.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1283, allocations: 0 / 439.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.1569, allocations: 4.149 MB / 443.9 MB, free: 2.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.092/8.249, allocations: 6.891 kB / 443.9 MB, free: 2.477 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00197941 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.csv","/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] "Error: Could not read variable multiSwitch1.y in file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable multiSwitch1.y from file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! Error: Could not read variable triggeredAdd.y in file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable triggeredAdd.y from file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.034092046087608]