Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.001268/0.001268, 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.001359/0.001359, 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.554/1.554, allocations: 207.6 MB / 232.5 MB, free: 3.953 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,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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.001832/0.001832, allocations: 47.94 kB / 343 MB, free: 10.13 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1148, allocations: 49.12 MB / 392.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002832/0.1176, allocations: 1.486 MB / 393.6 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007275/0.1183, allocations: 251.1 kB / 393.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.891e-05/0.1184, allocations: 4 kB / 393.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1186, allocations: 27.67 kB / 393.9 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.105e-05/0.1187, allocations: 11.81 kB / 393.9 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004855/0.1191, allocations: 111.8 kB / 394 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.1195, allocations: 259.5 kB / 394.2 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.1198, allocations: 150.6 kB / 394.4 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.1199, allocations: 83.72 kB / 394.5 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.1201, allocations: 99.58 kB / 394.6 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.308e-05/0.1201, allocations: 24 kB / 394.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.861e-05/0.1202, allocations: 24 kB / 394.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.536e-05/0.1203, allocations: 59.83 kB / 394.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.1204, allocations: 99.52 kB / 394.8 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003415/0.1207, allocations: 243 kB / 395 MB, free: 5.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1207, allocations: 0 / 395 MB, free: 5.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1207, allocations: 0 / 395 MB, free: 5.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1207, allocations: 0 / 395 MB, free: 5.93 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007542/0.1215, allocations: 490.2 kB / 395.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1215, allocations: 12.03 kB / 395.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.646e-05/0.1216, allocations: 8.75 kB / 395.5 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.499e-05/0.1216, allocations: 58.72 kB / 395.6 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.357e-05/0.1217, allocations: 28.8 kB / 395.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.1221, allocations: 224.1 kB / 395.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.1221, allocations: 16.94 kB / 395.8 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.1221, allocations: 28.38 kB / 395.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004439/0.1226, allocations: 247.7 kB / 396.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.1226, allocations: 0 / 396.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.1226, allocations: 8 kB / 396.1 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.1226, allocations: 4 kB / 396.1 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003166/0.1229, allocations: 161.7 kB / 396.3 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.124, allocations: 0.7091 MB / 397 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.1244, allocations: 154.8 kB / 397.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.1245, allocations: 68.83 kB / 397.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.1245, allocations: 7.938 kB / 397.2 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.1248, allocations: 123 kB / 397.3 MB, free: 3.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.094e-06/0.1248, allocations: 4 kB / 397.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004859/0.1252, allocations: 217.4 kB / 397.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/0.1253, allocations: 55.41 kB / 397.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.1254, allocations: 149.9 kB / 397.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.1255, allocations: 41.7 kB / 397.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.1256, allocations: 132.8 kB / 397.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.743e-05/0.1257, allocations: 75.45 kB / 398 MB, free: 2.723 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1258, allocations: 70.02 kB / 398 MB, free: 2.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1259, allocations: 326.8 kB / 398.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.1261, allocations: 64.56 kB / 398.4 MB, free: 2.254 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.1263, allocations: 132.1 kB / 398.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.1265, allocations: 178.7 kB / 398.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1265, allocations: 3.938 kB / 398.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003789/0.1269, allocations: 233.4 kB / 399 MB, free: 1.664 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1269, allocations: 4 kB / 399 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.1269, allocations: 4 kB / 399 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.1269, allocations: 4 kB / 399 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.1271, allocations: 36.14 kB / 399 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.1271, allocations: 3.938 kB / 399 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.1272, allocations: 27.83 kB / 399 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.1272, allocations: 16 kB / 399 MB, free: 1.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001676/0.1274, allocations: 157.6 kB / 399.2 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.1274, allocations: 19.89 kB / 399.2 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003755/0.1278, allocations: 194.4 kB / 399.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1278, allocations: 0 / 399.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1278, allocations: 4 kB / 399.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.1278, allocations: 3.984 kB / 399.4 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007784/0.1286, allocations: 0.5567 MB / 400 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1286, allocations: 0 / 400 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.264e-05/0.1287, allocations: 23.92 kB / 400 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1287, allocations: 0 / 400 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.1287, allocations: 4 kB / 400 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.942e-06/0.1287, allocations: 7.938 kB / 400 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1287, allocations: 0 / 400 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003509/0.1291, allocations: 287.7 kB / 400.3 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.1292, allocations: 92.95 kB / 400.4 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.1292, allocations: 11.98 kB / 400.4 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.979e-05/0.1293, allocations: 7.938 kB / 400.4 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.1294, allocations: 23.97 kB / 400.4 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.1294, allocations: 11.94 kB / 400.4 MB, free: 76 kB / 318.1 MB Notification: Performance of sorting global known variables: time 8.12e-05/0.1295, allocations: 99.77 kB / 400.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1295, allocations: 4 kB / 400.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002985/0.1297, allocations: 47.89 kB / 400.6 MB, free: 15.93 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0007348/0.1305, allocations: 0.8218 MB / 401.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003521/0.1308, allocations: 176.1 kB / 401.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1308, allocations: 3.938 kB / 401.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.131, allocations: 79.91 kB / 401.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.1313, allocations: 27.91 kB / 401.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.1337, allocations: 2 MB / 403.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.1341, allocations: 0.7363 MB / 404.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.947e-05/0.1341, allocations: 21.95 kB / 404.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1343, allocations: 63.41 kB / 404.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1343, allocations: 4 kB / 404.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.1564, allocations: 3.703 MB / 408.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.392/8.548, allocations: 4.062 kB / 408.2 MB, free: 8.07 MB / 334.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --stepSize=0.000998801 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.13037498499034] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.701932328986004 8.716572708 8.593037395 Calling exit ...