Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 116.9 kB / 18.45 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0019/0.0019, allocations: 216.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 207.6 MB / 231.8 MB, free: 4.051 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 55.92 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09573/0.09746, allocations: 49.12 MB / 391.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003242/0.1007, allocations: 1.832 MB / 393.2 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.1019, allocations: 0.6746 MB / 393.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.102, allocations: 7.938 kB / 393.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.1022, allocations: 27.67 kB / 393.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.1023, allocations: 39.66 kB / 394 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.1026, allocations: 79.84 kB / 394.1 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.1028, allocations: 171.4 kB / 394.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.103, allocations: 58.62 kB / 394.3 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1032, allocations: 79.64 kB / 394.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.1033, allocations: 91.59 kB / 394.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.1033, allocations: 12 kB / 394.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.131e-05/0.1034, allocations: 24 kB / 394.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.526e-05/0.1035, allocations: 43.84 kB / 394.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.353e-05/0.1036, allocations: 87.45 kB / 394.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002909/0.1039, allocations: 207 kB / 394.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1039, allocations: 0 / 394.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1039, allocations: 0 / 394.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1039, allocations: 0 / 394.8 MB, free: 5.273 MB / 318.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.0009303/0.1048, allocations: 0.4946 MB / 395.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.1049, allocations: 19.95 kB / 395.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.338e-05/0.1049, allocations: 54.73 kB / 395.4 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.105, allocations: 24.8 kB / 395.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002816/0.1053, allocations: 244 kB / 395.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.1053, allocations: 12.38 kB / 395.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.1053, allocations: 16.38 kB / 395.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004009/0.1057, allocations: 213.6 kB / 395.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1057, allocations: 0 / 395.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.1057, allocations: 8 kB / 395.9 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.1058, allocations: 11.84 kB / 395.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.1061, allocations: 139.7 kB / 396 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.1072, allocations: 0.7934 MB / 396.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000642/0.1079, allocations: 186.6 kB / 397 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.108, allocations: 56.81 kB / 397.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.603e-05/0.1081, allocations: 8 kB / 397.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002962/0.1084, allocations: 149 kB / 397.2 MB, free: 2.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.1084, allocations: 0 / 397.2 MB, free: 2.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006261/0.109, allocations: 241.4 kB / 397.5 MB, free: 2.418 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.49e-05/0.1091, allocations: 85.11 kB / 397.5 MB, free: 2.316 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.1093, allocations: 214.9 kB / 397.8 MB, free: 2.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.1093, allocations: 33.7 kB / 397.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.1094, allocations: 152.4 kB / 397.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.532e-05/0.1095, allocations: 31.73 kB / 398 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.1096, allocations: 61.69 kB / 398 MB, free: 1.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1097, allocations: 334.8 kB / 398.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.1099, allocations: 63.95 kB / 398.4 MB, free: 1.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.1101, allocations: 132.5 kB / 398.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/0.1105, allocations: 212.6 kB / 398.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.1105, allocations: 4 kB / 398.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000486/0.111, allocations: 257.1 kB / 399 MB, free: 0.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.111, allocations: 8.375 kB / 399 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.111, allocations: 0 / 399 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.111, allocations: 4 kB / 399 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.1112, allocations: 43.91 kB / 399.1 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.1112, allocations: 7.938 kB / 399.1 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.1114, allocations: 35.77 kB / 399.1 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.1114, allocations: 12.23 kB / 399.1 MB, free: 0.6406 MB / 318.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.0001414/0.1116, allocations: 144 kB / 399.3 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.393e-05/0.1116, allocations: 15.91 kB / 399.3 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.1119, allocations: 135 kB / 399.4 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.1119, allocations: 4 kB / 399.4 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1119, allocations: 0 / 399.4 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.1119, allocations: 7.922 kB / 399.4 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006736/0.1125, allocations: 482.3 kB / 399.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1126, allocations: 0 / 399.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.1127, allocations: 23.92 kB / 399.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.1127, allocations: 0 / 399.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.531e-05/0.1127, allocations: 7.922 kB / 399.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.696e-06/0.1127, allocations: 4 kB / 399.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1127, allocations: 0 / 399.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004532/0.1132, allocations: 280.2 kB / 400.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.219e-05/0.1132, allocations: 96.91 kB / 400.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.1133, allocations: 11.94 kB / 400.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.1135, allocations: 15.97 kB / 400.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-05/0.1135, allocations: 23.97 kB / 400.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.1136, allocations: 8 kB / 400.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.1137, allocations: 152.4 kB / 400.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1137, allocations: 0 / 400.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000302/0.114, allocations: 36 kB / 400.5 MB, free: 15.11 MB / 334.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.001012/0.115, allocations: 0.842 MB / 401.4 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004456/0.1155, allocations: 163.7 kB / 401.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1155, allocations: 0 / 401.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.1157, allocations: 71.89 kB / 401.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.116, allocations: 36.42 kB / 401.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.119, allocations: 2.233 MB / 403.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.1194, allocations: 0.7397 MB / 404.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.1195, allocations: 29.53 kB / 404.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.1196, allocations: 67.41 kB / 404.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1196, allocations: 0 / 404.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0344/0.154, allocations: 4.134 MB / 408.8 MB, free: 6.555 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.277/8.431, allocations: 0 / 408.8 MB, free: 6.555 MB / 334.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable multiSwitch1.y from file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! Error: Could not read variable triggeredAdd.y in file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv. Warning: Get data of variable triggeredAdd.y from file Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.048854150998523]