Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001329/0.001329, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001371/0.001371, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.457/1.457, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 55.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1043, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003447/0.1078, allocations: 1.853 MB / 428.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.1092, allocations: 0.7011 MB / 428.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1093, allocations: 7.938 kB / 428.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.1095, allocations: 27.66 kB / 428.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.1096, allocations: 31.73 kB / 428.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.11, allocations: 91.77 kB / 429 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002727/0.1102, allocations: 183.4 kB / 429.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.1104, allocations: 50.66 kB / 429.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001796/0.1106, allocations: 83.7 kB / 429.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.1108, allocations: 91.53 kB / 429.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.206e-05/0.1108, allocations: 12 kB / 429.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.247e-05/0.1109, allocations: 27.98 kB / 429.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.425e-05/0.111, allocations: 43.84 kB / 429.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.1111, allocations: 95.41 kB / 429.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000305/0.1114, allocations: 203 kB / 429.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1114, allocations: 3.984 kB / 429.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1114, allocations: 3.938 kB / 429.8 MB, free: 1.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1114, allocations: 0 / 429.8 MB, free: 1.262 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.001012/0.1124, allocations: 0.5101 MB / 430.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.1124, allocations: 8.031 kB / 430.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.806e-05/0.1125, allocations: 54.73 kB / 430.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.1127, allocations: 32.78 kB / 430.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.113, allocations: 252.8 kB / 430.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.113, allocations: 12.38 kB / 430.7 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.1131, allocations: 16.38 kB / 430.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004306/0.1135, allocations: 213.4 kB / 430.9 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1135, allocations: 0 / 430.9 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.1135, allocations: 4 kB / 430.9 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.852e-05/0.1136, allocations: 15.92 kB / 430.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003528/0.1139, allocations: 135.9 kB / 431 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.1151, allocations: 0.7857 MB / 431.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006374/0.1157, allocations: 190.6 kB / 432 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.1158, allocations: 60.81 kB / 432.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.1159, allocations: 0 / 432.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.1162, allocations: 149 kB / 432.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.1162, allocations: 0 / 432.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006183/0.1168, allocations: 241.4 kB / 432.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.1169, allocations: 81.11 kB / 432.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.1171, allocations: 219.1 kB / 432.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.1171, allocations: 33.7 kB / 432.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.1172, allocations: 152.4 kB / 432.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.759e-05/0.1173, allocations: 31.73 kB / 433 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.1174, allocations: 65.64 kB / 433 MB, free: 13.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002304/0.1176, allocations: 334.8 kB / 433.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.1178, allocations: 63.95 kB / 433.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.118, allocations: 140.8 kB / 433.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.1184, allocations: 204.4 kB / 433.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1184, allocations: 0 / 433.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004894/0.1189, allocations: 253.2 kB / 434 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1189, allocations: 8 kB / 434 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1189, allocations: 0 / 434 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1189, allocations: 4 kB / 434 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.1191, allocations: 43.91 kB / 434.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1191, allocations: 4 kB / 434.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.1193, allocations: 36.02 kB / 434.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.1193, allocations: 19.97 kB / 434.1 MB, free: 12.61 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.000145/0.1195, allocations: 144 kB / 434.3 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.558e-05/0.1195, allocations: 19.89 kB / 434.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002726/0.1198, allocations: 135 kB / 434.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1198, allocations: 4 kB / 434.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1198, allocations: 0 / 434.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1198, allocations: 3.938 kB / 434.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006724/0.1205, allocations: 486.5 kB / 434.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1205, allocations: 4 kB / 434.9 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.1206, allocations: 19.98 kB / 434.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1206, allocations: 0 / 434.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.1206, allocations: 11.92 kB / 434.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1206, allocations: 0 / 434.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1206, allocations: 0 / 434.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004489/0.121, allocations: 290.7 kB / 435.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.781e-05/0.1211, allocations: 101 kB / 435.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.1211, allocations: 3.938 kB / 435.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.1213, allocations: 19.97 kB / 435.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.599e-05/0.1214, allocations: 19.97 kB / 435.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.1214, allocations: 8 kB / 435.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001359/0.1216, allocations: 148.7 kB / 435.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1216, allocations: 192 / 435.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003066/0.1219, allocations: 43.94 kB / 435.5 MB, free: 11.07 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.0008334/0.1227, allocations: 0.8345 MB / 436.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004062/0.1231, allocations: 159.7 kB / 436.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1231, allocations: 0 / 436.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.1233, allocations: 75.89 kB / 436.6 MB, free: 9.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.1236, allocations: 32.8 kB / 436.6 MB, free: 9.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003039/0.1267, allocations: 2.245 MB / 438.9 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.1271, allocations: 0.7398 MB / 439.6 MB, free: 6.797 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.1272, allocations: 29.53 kB / 439.7 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.1274, allocations: 67.41 kB / 439.7 MB, free: 6.695 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1274, allocations: 0 / 439.7 MB, free: 6.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.156, allocations: 4.15 MB / 443.9 MB, free: 2.625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.949/8.105, allocations: 14.58 kB / 443.9 MB, free: 2.613 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/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_4.1.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.667469874024391]