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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 116 kB / 18.45 MB, free: 4.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 194.9 kB / 21.4 MB, free: 1.688 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.482/1.482, allocations: 207.6 MB / 231.8 MB, free: 4.098 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 59.86 kB / 342.2 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1103, allocations: 49.12 MB / 391.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003421/0.1137, allocations: 1.836 MB / 393.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.115, allocations: 0.6746 MB / 393.9 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.271e-05/0.1151, allocations: 4 kB / 393.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.1153, allocations: 31.66 kB / 393.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.1154, allocations: 31.72 kB / 393.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.1157, allocations: 83.78 kB / 394 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000255/0.1159, allocations: 175.4 kB / 394.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.1161, allocations: 58.62 kB / 394.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.1163, allocations: 75.66 kB / 394.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.1164, allocations: 91.59 kB / 394.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.984e-05/0.1164, allocations: 12 kB / 394.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.331e-05/0.1165, allocations: 23.98 kB / 394.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.046e-05/0.1166, allocations: 43.84 kB / 394.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.148e-05/0.1167, allocations: 87.45 kB / 394.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.117, allocations: 203 kB / 394.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.117, allocations: 0 / 394.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.117, allocations: 0 / 394.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.117, allocations: 0 / 394.8 MB, free: 5.316 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.0009616/0.118, allocations: 0.5063 MB / 395.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.118, allocations: 8.031 kB / 395.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.848e-05/0.1181, allocations: 46.73 kB / 395.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.451e-05/0.1181, allocations: 28.8 kB / 395.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.1185, allocations: 252 kB / 395.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.1185, allocations: 16.38 kB / 395.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/0.1185, allocations: 16.38 kB / 395.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/0.1189, allocations: 205.6 kB / 395.8 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1189, allocations: 0 / 395.8 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.119, allocations: 8 kB / 395.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.119, allocations: 11.8 kB / 395.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003461/0.1193, allocations: 151.7 kB / 396 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.1205, allocations: 0.7934 MB / 396.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/0.1211, allocations: 174.7 kB / 397 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.1212, allocations: 52.83 kB / 397 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.1213, allocations: 11.94 kB / 397 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002886/0.1216, allocations: 137 kB / 397.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.1216, allocations: 7.938 kB / 397.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006052/0.1222, allocations: 241.4 kB / 397.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.916e-05/0.1222, allocations: 89.05 kB / 397.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.1225, allocations: 222.9 kB / 397.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.1225, allocations: 29.7 kB / 397.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.1226, allocations: 140.4 kB / 397.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.153e-05/0.1227, allocations: 39.72 kB / 397.9 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.1228, allocations: 57.69 kB / 398 MB, free: 1.855 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.123, allocations: 330.8 kB / 398.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.1231, allocations: 71.95 kB / 398.4 MB, free: 1.453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.1234, allocations: 136.5 kB / 398.5 MB, free: 1.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003678/0.1237, allocations: 208.4 kB / 398.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1237, allocations: 4 kB / 398.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004805/0.1242, allocations: 253.1 kB / 399 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1242, allocations: 8 kB / 399 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1242, allocations: 0 / 399 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1242, allocations: 4 kB / 399 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.1244, allocations: 40.17 kB / 399 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.1244, allocations: 4 kB / 399 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.1246, allocations: 40.06 kB / 399 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.1246, allocations: 12 kB / 399.1 MB, free: 0.6914 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.0001704/0.1248, allocations: 152 kB / 399.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.1248, allocations: 19.91 kB / 399.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002652/0.1251, allocations: 135 kB / 399.4 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1251, allocations: 0 / 399.4 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1251, allocations: 0 / 399.4 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.1251, allocations: 8.406 kB / 399.4 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007185/0.1258, allocations: 482.2 kB / 399.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.1258, allocations: 4 kB / 399.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.126, allocations: 15.98 kB / 399.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.126, allocations: 0 / 399.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.126, allocations: 15.88 kB / 399.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.126, allocations: 4 kB / 399.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.126, allocations: 0 / 399.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004376/0.1264, allocations: 280.2 kB / 400.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.577e-05/0.1265, allocations: 104.9 kB / 400.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.1265, allocations: 3.938 kB / 400.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.1267, allocations: 19.98 kB / 400.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.936e-05/0.1268, allocations: 23.97 kB / 400.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.1268, allocations: 11.98 kB / 400.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001343/0.127, allocations: 144.4 kB / 400.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.127, allocations: 0 / 400.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002961/0.1273, allocations: 39.94 kB / 400.5 MB, free: 15.14 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.0008495/0.1281, allocations: 0.834 MB / 401.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004087/0.1285, allocations: 164.2 kB / 401.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.1285, allocations: 4 kB / 401.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.1287, allocations: 71.89 kB / 401.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.1291, allocations: 40.62 kB / 401.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002851/0.1319, allocations: 2.245 MB / 403.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.1323, allocations: 0.7319 MB / 404.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.1324, allocations: 33.53 kB / 404.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.1325, allocations: 63.41 kB / 404.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1325, allocations: 0 / 404.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02798/0.1605, allocations: 4.118 MB / 408.8 MB, free: 6.598 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.155, allocations: 3.938 kB / 408.8 MB, free: 6.594 MB / 334.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.642773960717022]