Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001333/0.001333, allocations: 117.5 kB / 19.17 MB, free: 3.922 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.001482/0.001482, allocations: 203.9 kB / 22.12 MB, free: 0.9805 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.59/1.59, allocations: 207.6 MB / 232.5 MB, free: 3.938 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.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",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.0017/0.0017, allocations: 55.92 kB / 343 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09976, allocations: 49.13 MB / 392.1 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003356/0.1031, allocations: 1.656 MB / 393.8 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000864/0.104, allocations: 267.2 kB / 394 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1041, allocations: 4 kB / 394 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.1043, allocations: 31.67 kB / 394 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.12e-05/0.1043, allocations: 15.8 kB / 394.1 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004884/0.1048, allocations: 119.8 kB / 394.2 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003881/0.1052, allocations: 271.5 kB / 394.4 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003366/0.1055, allocations: 166.9 kB / 394.6 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.1057, allocations: 91.7 kB / 394.7 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.1058, allocations: 103.5 kB / 394.8 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.1059, allocations: 24 kB / 394.8 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.468e-05/0.106, allocations: 24 kB / 394.8 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.986e-05/0.106, allocations: 59.83 kB / 394.9 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.1062, allocations: 107.5 kB / 395 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003774/0.1066, allocations: 258.9 kB / 395.3 MB, free: 5.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1066, allocations: 4 kB / 395.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1066, allocations: 0 / 395.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1066, allocations: 0 / 395.3 MB, free: 5.523 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008223/0.1074, allocations: 493.7 kB / 395.7 MB, free: 4.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.1074, allocations: 12.03 kB / 395.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.922e-05/0.1075, allocations: 8.75 kB / 395.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.375e-05/0.1075, allocations: 58.72 kB / 395.8 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.475e-05/0.1076, allocations: 28.8 kB / 395.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003536/0.108, allocations: 232 kB / 396.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.108, allocations: 24.94 kB / 396.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.543e-05/0.108, allocations: 32.36 kB / 396.1 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004852/0.1085, allocations: 278.3 kB / 396.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1085, allocations: 0 / 396.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.1086, allocations: 16 kB / 396.4 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.1086, allocations: 4 kB / 396.4 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.1089, allocations: 169.6 kB / 396.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.1101, allocations: 0.9596 MB / 397.6 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003068/0.1104, allocations: 142.6 kB / 397.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.1106, allocations: 64.88 kB / 397.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.1106, allocations: 4 kB / 397.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.1108, allocations: 131 kB / 397.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.1108, allocations: 0 / 397.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004765/0.1113, allocations: 205.5 kB / 398.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.496e-05/0.1114, allocations: 55.41 kB / 398.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.1115, allocations: 158 kB / 398.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.1116, allocations: 41.69 kB / 398.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.1117, allocations: 152.6 kB / 398.5 MB, free: 2.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.07e-05/0.1117, allocations: 55.53 kB / 398.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.1119, allocations: 86 kB / 398.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.112, allocations: 326.8 kB / 398.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.1121, allocations: 64.62 kB / 399 MB, free: 1.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.1123, allocations: 137.7 kB / 399.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.1125, allocations: 192.4 kB / 399.3 MB, free: 1.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1125, allocations: 4 kB / 399.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003798/0.1129, allocations: 245.3 kB / 399.6 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.1129, allocations: 11.94 kB / 399.6 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1129, allocations: 0 / 399.6 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.113, allocations: 4.281 kB / 399.6 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.1131, allocations: 43.86 kB / 399.6 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.1131, allocations: 11.97 kB / 399.6 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.69e-05/0.1132, allocations: 23.84 kB / 399.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.1133, allocations: 15.94 kB / 399.7 MB, free: 0.7695 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: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001575/0.1134, allocations: 164.3 kB / 399.8 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.502e-05/0.1134, allocations: 11.91 kB / 399.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003604/0.1138, allocations: 190.7 kB / 400 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1138, allocations: 4 kB / 400 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.1138, allocations: 0 / 400 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.1138, allocations: 3.984 kB / 400 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007567/0.1146, allocations: 0.5909 MB / 400.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1146, allocations: 0 / 400.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.605e-05/0.1146, allocations: 19.94 kB / 400.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1146, allocations: 0 / 400.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1147, allocations: 4 kB / 400.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.1147, allocations: 7.984 kB / 400.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1147, allocations: 0 / 400.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003152/0.115, allocations: 283.7 kB / 400.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.172e-05/0.1151, allocations: 100.9 kB / 401 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.1151, allocations: 0 / 401 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.664e-05/0.1152, allocations: 8 kB / 401.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-05/0.1153, allocations: 23.97 kB / 401.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.1153, allocations: 4 kB / 401.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.075e-05/0.1153, allocations: 99.27 kB / 401.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1153, allocations: 4 kB / 401.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003022/0.1156, allocations: 51.89 kB / 401.2 MB, free: 15.11 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0007049/0.1163, allocations: 0.8179 MB / 402.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003417/0.1167, allocations: 180.1 kB / 402.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1167, allocations: 0 / 402.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.1168, allocations: 75.84 kB / 402.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.1171, allocations: 16 kB / 402.3 MB, free: 14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.1195, allocations: 2.066 MB / 404.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.1199, allocations: 0.7439 MB / 405.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.859e-05/0.1199, allocations: 25.92 kB / 405.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.12, allocations: 63.64 kB / 405.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.12, allocations: 0 / 405.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.1397, allocations: 3.77 MB / 409 MB, free: 7.129 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.402/8.541, allocations: 12 kB / 409 MB, free: 7.117 MB / 334.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.134308618027717] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.665814458974637 8.682214105 8.572400791 Calling exit ...