Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009676/0.0009679, allocations: 98.2 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 192.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002688, allocations: 4 kB / 306.8 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1286, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001768/0.1305, allocations: 1.425 MB / 359.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005773/0.1311, allocations: 291.2 kB / 360 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.769e-05/0.1312, allocations: 7.938 kB / 360 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.718e-05/0.1313, allocations: 19.86 kB / 360 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.564e-05/0.1313, allocations: 11.88 kB / 360 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000307/0.1316, allocations: 91.88 kB / 360.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002734/0.1319, allocations: 243.4 kB / 360.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.1322, allocations: 145.9 kB / 360.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.72e-05/0.1323, allocations: 67.72 kB / 360.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.1324, allocations: 87.53 kB / 360.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.1325, allocations: 8 kB / 360.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.192e-05/0.1325, allocations: 16 kB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.1326, allocations: 43.83 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.1326, allocations: 53.64 kB / 360.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.1328, allocations: 159.7 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1328, allocations: 0 / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1328, allocations: 0 / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1329, allocations: 4 kB / 360.9 MB, free: 11.32 MB / 302.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.0005891/0.1335, allocations: 454.3 kB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1335, allocations: 8.031 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.879e-05/0.1336, allocations: 66.47 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/0.1337, allocations: 19.81 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.1339, allocations: 226.7 kB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.1339, allocations: 24.55 kB / 361.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.134, allocations: 31.95 kB / 361.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004285/0.1344, allocations: 274 kB / 362 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1344, allocations: 0 / 362 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.1345, allocations: 8 kB / 362 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.1345, allocations: 11.98 kB / 362 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002698/0.1348, allocations: 161.6 kB / 362.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.1358, allocations: 0.9829 MB / 363.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.1361, allocations: 167.7 kB / 363.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.1362, allocations: 86.16 kB / 363.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.1363, allocations: 4.188 kB / 363.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.1365, allocations: 152.6 kB / 363.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.1365, allocations: 0 / 363.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004027/0.1369, allocations: 217.2 kB / 363.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.137, allocations: 85.23 kB / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.1371, allocations: 157.5 kB / 364 MB, free: 7.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.1372, allocations: 37.7 kB / 364.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.1373, allocations: 132.6 kB / 364.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.614e-05/0.1373, allocations: 67.19 kB / 364.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.117e-05/0.1373, allocations: 4 kB / 364.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1375, allocations: 326.8 kB / 364.6 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.1376, allocations: 59.97 kB / 364.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.1377, allocations: 144.3 kB / 364.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.1379, allocations: 72 kB / 364.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1379, allocations: 0 / 364.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003714/0.1382, allocations: 249.8 kB / 365.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1383, allocations: 8 kB / 365.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1383, allocations: 8.172 kB / 365.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1383, allocations: 8 kB / 365.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.1384, allocations: 39.86 kB / 365.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.1385, allocations: 7.984 kB / 365.2 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.998e-05/0.1386, allocations: 27.75 kB / 365.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.1386, allocations: 16 kB / 365.2 MB, free: 6.738 MB / 302.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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.1388, allocations: 159.5 kB / 365.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.1388, allocations: 15.81 kB / 365.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003234/0.1391, allocations: 195 kB / 365.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1391, allocations: 7.953 kB / 365.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1391, allocations: 0 / 365.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1391, allocations: 3.984 kB / 365.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006926/0.1398, allocations: 0.5954 MB / 366.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1399, allocations: 0 / 366.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-05/0.1399, allocations: 15.94 kB / 366.2 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1399, allocations: 8 kB / 366.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.14, allocations: 7.984 kB / 366.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.14, allocations: 7.938 kB / 366.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.14, allocations: 0 / 366.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.1403, allocations: 280.1 kB / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.084e-05/0.1404, allocations: 92.91 kB / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.1404, allocations: 8 kB / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.176e-05/0.1405, allocations: 11.98 kB / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.487e-05/0.1406, allocations: 23.97 kB / 366.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.1406, allocations: 4 kB / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.487e-05/0.1406, allocations: 102.9 kB / 366.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1407, allocations: 0 / 366.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000297/0.141, allocations: 59.83 kB / 366.8 MB, free: 5.047 MB / 302.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: 20 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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 (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006175/0.1416, allocations: 0.8266 MB / 367.6 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.1419, allocations: 183.9 kB / 367.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1419, allocations: 0 / 367.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.142, allocations: 84.47 kB / 367.9 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.1423, allocations: 35.92 kB / 367.9 MB, free: 3.891 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.1437, allocations: 0.9874 MB / 368.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.144, allocations: 0.7407 MB / 369.6 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.193e-05/0.1441, allocations: 25.94 kB / 369.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.1442, allocations: 63.41 kB / 369.7 MB, free: 1.973 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1442, allocations: 0 / 369.7 MB, free: 1.973 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2154/0.3597, allocations: 3.34 MB / 373.1 MB, free: 18.97 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001783/0.3599, allocations: 189.6 kB / 373.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.136/2.496, allocations: 0 / 373.2 MB, free: 18.73 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat