Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001898/0.001898, allocations: 120.2 kB / 18.5 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002233/0.002233, allocations: 222.2 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002788/0.002788, allocations: 67.89 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1268, allocations: 53.37 MB / 427 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003067/0.1299, allocations: 1.69 MB / 428.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007134/0.1306, allocations: 295.1 kB / 429 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.1307, allocations: 7.938 kB / 429 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.1309, allocations: 19.75 kB / 429 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.408e-05/0.1309, allocations: 23.73 kB / 429.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.1313, allocations: 119.8 kB / 429.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003779/0.1317, allocations: 271.5 kB / 429.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003398/0.132, allocations: 166.9 kB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.1322, allocations: 91.7 kB / 429.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.1323, allocations: 95.59 kB / 429.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.746e-05/0.1324, allocations: 24 kB / 429.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.644e-05/0.1324, allocations: 35.92 kB / 429.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.744e-05/0.1325, allocations: 59.83 kB / 429.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.1326, allocations: 103.5 kB / 430 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00032/0.1329, allocations: 254.9 kB / 430.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1329, allocations: 4 kB / 430.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1329, allocations: 0 / 430.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.1329, allocations: 0 / 430.3 MB, free: 1.379 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007895/0.1337, allocations: 0.4944 MB / 430.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.1338, allocations: 8.031 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.687e-05/0.1338, allocations: 8.75 kB / 430.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.566e-05/0.1339, allocations: 62.72 kB / 430.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002051/0.1341, allocations: 28.8 kB / 430.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.1344, allocations: 236 kB / 431.1 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.1344, allocations: 20.94 kB / 431.1 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.1345, allocations: 32.38 kB / 431.1 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004699/0.1349, allocations: 270.3 kB / 431.4 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1349, allocations: 0 / 431.4 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.135, allocations: 12 kB / 431.4 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.135, allocations: 4 kB / 431.4 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003254/0.1353, allocations: 169.6 kB / 431.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.1365, allocations: 0.9557 MB / 432.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.1368, allocations: 172.2 kB / 432.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.1369, allocations: 65.7 kB / 432.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.137, allocations: 0 / 432.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.1372, allocations: 141 kB / 432.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1372, allocations: 0 / 432.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004779/0.1377, allocations: 218 kB / 433.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.1378, allocations: 85.05 kB / 433.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.1379, allocations: 163.4 kB / 433.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.1379, allocations: 37.7 kB / 433.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.1381, allocations: 152.8 kB / 433.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.1381, allocations: 59.58 kB / 433.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.1382, allocations: 77.64 kB / 433.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1384, allocations: 330.8 kB / 434 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1385, allocations: 67.75 kB / 434.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.1387, allocations: 144.3 kB / 434.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.139, allocations: 196.3 kB / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.139, allocations: 0 / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003995/0.1394, allocations: 253.3 kB / 434.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1394, allocations: 12.28 kB / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.375e-05/0.1394, allocations: 4 kB / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.1395, allocations: 4 kB / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.1396, allocations: 31.92 kB / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1396, allocations: 4 kB / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.1397, allocations: 27.78 kB / 434.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.1398, allocations: 12 kB / 434.8 MB, free: 12.53 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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001599/0.1399, allocations: 161.6 kB / 434.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.1399, allocations: 15.95 kB / 434.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.738e-05/0.14, allocations: 24.81 kB / 435 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.14, allocations: 4 kB / 435 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.14, allocations: 0 / 435 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.14, allocations: 0 / 435 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007792/0.1408, allocations: 0.5831 MB / 435.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1408, allocations: 0 / 435.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.468e-05/0.1409, allocations: 15.98 kB / 435.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.1409, allocations: 4 kB / 435.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.1409, allocations: 11.94 kB / 435.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1409, allocations: 3.938 kB / 435.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1409, allocations: 4 kB / 435.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.1412, allocations: 272.1 kB / 435.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.1413, allocations: 92.95 kB / 435.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.957e-05/0.1413, allocations: 11.94 kB / 435.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.867e-05/0.1414, allocations: 3.984 kB / 435.9 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.544e-05/0.1415, allocations: 23.98 kB / 436 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.1415, allocations: 15.92 kB / 436 MB, free: 11.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.102e-05/0.1415, allocations: 95.27 kB / 436.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1415, allocations: 0 / 436.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.1419, allocations: 51.89 kB / 436.1 MB, free: 11.04 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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006371/0.1425, allocations: 0.8145 MB / 436.9 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003561/0.1429, allocations: 176.6 kB / 437.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1429, allocations: 0 / 437.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.143, allocations: 79.62 kB / 437.2 MB, free: 9.945 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.1433, allocations: 16.62 kB / 437.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.1457, allocations: 2.074 MB / 439.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.1461, allocations: 0.7326 MB / 440 MB, free: 6.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.512e-05/0.1462, allocations: 21.95 kB / 440 MB, free: 6.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.1463, allocations: 63.41 kB / 440.1 MB, free: 6.867 MB / 366.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1463, allocations: 4 kB / 440.1 MB, free: 6.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.1656, allocations: 3.554 MB / 443.7 MB, free: 3.414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.353/8.518, allocations: 16.12 kB / 443.7 MB, free: 3.402 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.179983860987704] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 8.645733437966555 8.92026025 8.783767391 Calling exit ...