Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001941/0.001941, allocations: 124.2 kB / 17.78 MB, free: 5.121 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.001832/0.001832, allocations: 189.2 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 51.92 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09741/0.09884, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002976/0.1018, allocations: 1.841 MB / 419.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.1029, allocations: 0.631 MB / 420.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.373e-05/0.103, allocations: 7.938 kB / 420.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.1031, allocations: 23.67 kB / 420.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.1032, allocations: 31.72 kB / 420.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.1035, allocations: 91.78 kB / 420.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.1037, allocations: 167.5 kB / 420.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.1039, allocations: 54.64 kB / 420.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.104, allocations: 83.64 kB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.1042, allocations: 91.53 kB / 420.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.757e-05/0.1042, allocations: 12 kB / 420.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.318e-05/0.1043, allocations: 24 kB / 420.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.741e-05/0.1043, allocations: 43.78 kB / 420.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.811e-05/0.1044, allocations: 87.47 kB / 420.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002673/0.1047, allocations: 207 kB / 421.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1047, allocations: 0 / 421.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1047, allocations: 0 / 421.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1047, allocations: 0 / 421.1 MB, free: 9.211 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.0008867/0.1056, allocations: 0.5101 MB / 421.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.1056, allocations: 8.031 kB / 421.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.401e-05/0.1057, allocations: 50.73 kB / 421.7 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.1057, allocations: 24.8 kB / 421.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.106, allocations: 244.5 kB / 422 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.106, allocations: 24.12 kB / 422 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.1061, allocations: 12 kB / 422 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003939/0.1065, allocations: 209.7 kB / 422.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1065, allocations: 7.875 kB / 422.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.1065, allocations: 11.98 kB / 422.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.1065, allocations: 4 kB / 422.2 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.1068, allocations: 147.7 kB / 422.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.1079, allocations: 0.7778 MB / 423.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006013/0.1085, allocations: 182.6 kB / 423.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.1087, allocations: 56.81 kB / 423.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.94e-05/0.1087, allocations: 12 kB / 423.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003458/0.109, allocations: 143.1 kB / 423.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.109, allocations: 0 / 423.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009084/0.11, allocations: 241.4 kB / 423.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/0.11, allocations: 93.05 kB / 423.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003098/0.1103, allocations: 218.9 kB / 424.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.1104, allocations: 29.7 kB / 424.1 MB, free: 5.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.1105, allocations: 144.8 kB / 424.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.16e-05/0.1106, allocations: 31.73 kB / 424.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.1107, allocations: 69.64 kB / 424.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.1109, allocations: 330.8 kB / 424.7 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002587/0.1111, allocations: 75.89 kB / 424.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003161/0.1115, allocations: 133.1 kB / 424.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005712/0.112, allocations: 212.4 kB / 425.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.112, allocations: 256 / 425.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007307/0.1128, allocations: 253.2 kB / 425.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.1128, allocations: 8 kB / 425.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1128, allocations: 0 / 425.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.1128, allocations: 4 kB / 425.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.1131, allocations: 52.09 kB / 425.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.1131, allocations: 7.938 kB / 425.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000258/0.1134, allocations: 31.83 kB / 425.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.1134, allocations: 15.97 kB / 425.5 MB, free: 4.562 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.0001927/0.1136, allocations: 144 kB / 425.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.012e-05/0.1136, allocations: 27.83 kB / 425.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003775/0.114, allocations: 131.1 kB / 425.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.114, allocations: 3.938 kB / 425.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.672e-05/0.114, allocations: 3.984 kB / 425.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.114, allocations: 0 / 425.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009192/0.115, allocations: 478.3 kB / 426.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.115, allocations: 4 kB / 426.2 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.1151, allocations: 19.92 kB / 426.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1151, allocations: 0 / 426.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.1152, allocations: 7.984 kB / 426.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.1152, allocations: 4 kB / 426.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1152, allocations: 0 / 426.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006479/0.1158, allocations: 288.1 kB / 426.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.908e-05/0.1159, allocations: 96.95 kB / 426.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.45e-05/0.116, allocations: 4.188 kB / 426.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.1162, allocations: 19.97 kB / 426.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.977e-05/0.1163, allocations: 27.91 kB / 426.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.1164, allocations: 8 kB / 426.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002014/0.1166, allocations: 152.3 kB / 426.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1166, allocations: 0 / 426.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005244/0.1171, allocations: 43.89 kB / 426.9 MB, free: 3.02 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.00112/0.1182, allocations: 0.8302 MB / 427.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006016/0.1188, allocations: 164.3 kB / 427.9 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1188, allocations: 4 kB / 427.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.1191, allocations: 75.89 kB / 428 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005429/0.1196, allocations: 26.09 kB / 428 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.1239, allocations: 2.229 MB / 430.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.1244, allocations: 0.7358 MB / 430.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001811/0.1245, allocations: 33.53 kB / 431 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.1247, allocations: 67.41 kB / 431 MB, free: 14.66 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1247, allocations: 192 / 431 MB, free: 14.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.1529, allocations: 4.128 MB / 435.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.643/7.796, allocations: 7.047 kB / 435.2 MB, free: 10.61 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.259887252002954]