Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.00167/0.00167, allocations: 110.4 kB / 19.16 MB, free: 3.938 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.001783/0.001783, allocations: 205.6 kB / 22.12 MB, free: 0.9922 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.567/1.567, 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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001719/0.001719, allocations: 59.91 kB / 343 MB, free: 10.14 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.106, allocations: 49.12 MB / 392.1 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003563/0.1096, allocations: 1.688 MB / 393.8 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000771/0.1104, allocations: 263.2 kB / 394 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.1105, allocations: 8 kB / 394 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.1106, allocations: 27.67 kB / 394.1 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.141e-05/0.1107, allocations: 19.8 kB / 394.1 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004457/0.1112, allocations: 123.7 kB / 394.2 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000366/0.1115, allocations: 263.5 kB / 394.5 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003337/0.1119, allocations: 165.5 kB / 394.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.112, allocations: 87.72 kB / 394.7 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.1121, allocations: 99.53 kB / 394.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.081e-05/0.1122, allocations: 24 kB / 394.8 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.9e-05/0.1122, allocations: 35.98 kB / 394.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.258e-05/0.1123, allocations: 59.78 kB / 394.9 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.1124, allocations: 103.4 kB / 395 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003737/0.1128, allocations: 247 kB / 395.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.1128, allocations: 0 / 395.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1128, allocations: 4 kB / 395.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1128, allocations: 0 / 395.3 MB, free: 5.641 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.000752/0.1136, allocations: 489.8 kB / 395.8 MB, free: 5.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.1136, allocations: 12.03 kB / 395.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.493e-05/0.1137, allocations: 8.75 kB / 395.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.169e-05/0.1137, allocations: 58.72 kB / 395.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.679e-05/0.1138, allocations: 24.8 kB / 395.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.1142, allocations: 236 kB / 396.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.567e-05/0.1142, allocations: 28.94 kB / 396.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.1143, allocations: 28.38 kB / 396.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.1147, allocations: 274.3 kB / 396.4 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.1148, allocations: 3.938 kB / 396.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.1148, allocations: 12 kB / 396.4 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1148, allocations: 4 kB / 396.4 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.1151, allocations: 169.6 kB / 396.6 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.1163, allocations: 0.9557 MB / 397.6 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.1166, allocations: 146.7 kB / 397.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.1167, allocations: 68.77 kB / 397.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.1167, allocations: 4 kB / 397.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002146/0.1169, allocations: 115.1 kB / 397.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.1169, allocations: 0 / 397.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004426/0.1174, allocations: 217.4 kB / 398.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.1174, allocations: 55.41 kB / 398.1 MB, free: 2.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.1176, allocations: 157.6 kB / 398.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.023e-05/0.1176, allocations: 37.7 kB / 398.3 MB, free: 2.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1177, allocations: 148.7 kB / 398.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.109e-05/0.1178, allocations: 55.59 kB / 398.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.1179, allocations: 89.89 kB / 398.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1181, allocations: 326.8 kB / 398.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.1182, allocations: 64.62 kB / 399 MB, free: 1.645 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.1184, allocations: 137.8 kB / 399.1 MB, free: 1.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.1186, allocations: 188.4 kB / 399.3 MB, free: 1.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1186, allocations: 4 kB / 399.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003975/0.119, allocations: 253.2 kB / 399.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.1191, allocations: 8 kB / 399.6 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1191, allocations: 0 / 399.6 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.1191, allocations: 4 kB / 399.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.1192, allocations: 35.92 kB / 399.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.1192, allocations: 4.281 kB / 399.6 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.1193, allocations: 35.77 kB / 399.7 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.1194, allocations: 11.94 kB / 399.7 MB, free: 0.9102 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.0001531/0.1195, allocations: 152.4 kB / 399.8 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.1195, allocations: 11.94 kB / 399.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003534/0.1199, allocations: 202.3 kB / 400 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1199, allocations: 0 / 400 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1199, allocations: 0 / 400 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1199, allocations: 8 kB / 400 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007628/0.1207, allocations: 0.587 MB / 400.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1207, allocations: 0 / 400.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.171e-05/0.1208, allocations: 23.86 kB / 400.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1208, allocations: 0 / 400.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.1208, allocations: 11.94 kB / 400.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1208, allocations: 0 / 400.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1208, allocations: 0 / 400.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003185/0.1211, allocations: 275.8 kB / 400.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.602e-05/0.1212, allocations: 96.89 kB / 401 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.1212, allocations: 4 kB / 401 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.23e-05/0.1213, allocations: 11.97 kB / 401 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.142e-05/0.1214, allocations: 19.97 kB / 401.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.1214, allocations: 12 kB / 401.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.07e-05/0.1214, allocations: 95.27 kB / 401.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1214, allocations: 0 / 401.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.1218, allocations: 47.89 kB / 401.2 MB, free: 15.26 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,transition1.enableFire,step.active,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.0006682/0.1224, allocations: 0.8294 MB / 402 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003294/0.1227, allocations: 175.7 kB / 402.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1228, allocations: 0.5625 kB / 402.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.1229, allocations: 75.86 kB / 402.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.1232, allocations: 23.89 kB / 402.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.1257, allocations: 2.058 MB / 404.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.126, allocations: 0.7324 MB / 405.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.384e-05/0.1261, allocations: 29.94 kB / 405.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.1263, allocations: 67.41 kB / 405.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1263, allocations: 0 / 405.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.1468, allocations: 3.723 MB / 408.9 MB, free: 7.312 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.422/8.569, allocations: 19.91 kB / 408.9 MB, free: 7.293 MB / 334.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.105351828970015] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.69478723499924 8.709318336 8.593645666 Calling exit ...