Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 88.16 kB / 16.31 MB, free: 5.547 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001322, allocations: 181.5 kB / 17.21 MB, free: 5.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003595, allocations: 15.98 kB / 300.9 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1236, allocations: 50.42 MB / 351.3 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002111/0.1258, allocations: 1.378 MB / 352.7 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007621/0.1266, allocations: 291.2 kB / 353 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.1267, allocations: 4 kB / 353 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1268, allocations: 23.8 kB / 353 MB, free: 2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.614e-05/0.1269, allocations: 15.86 kB / 353 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004702/0.1274, allocations: 83.89 kB / 353.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.1277, allocations: 243.4 kB / 353.4 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003059/0.128, allocations: 153.6 kB / 353.5 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.436e-05/0.1282, allocations: 67.78 kB / 353.6 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.1283, allocations: 83.59 kB / 353.7 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.1283, allocations: 12 kB / 353.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.1284, allocations: 15.94 kB / 353.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.635e-05/0.1285, allocations: 43.89 kB / 353.7 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.165e-05/0.1285, allocations: 53.58 kB / 353.8 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.1288, allocations: 171.6 kB / 353.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1288, allocations: 0 / 353.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1288, allocations: 0 / 353.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1288, allocations: 0 / 353.9 MB, free: 1.059 MB / 286.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.000732/0.1295, allocations: 450.8 kB / 354.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.1296, allocations: 12.03 kB / 354.4 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.739e-05/0.1297, allocations: 62.53 kB / 354.5 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.358e-05/0.1298, allocations: 23.72 kB / 354.5 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.1301, allocations: 230.7 kB / 354.7 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/0.1302, allocations: 20.56 kB / 354.7 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.349e-05/0.1302, allocations: 24 kB / 354.7 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005561/0.1308, allocations: 278 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1308, allocations: 0 / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/0.1308, allocations: 15.95 kB / 355 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.1309, allocations: 11.94 kB / 355 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000323/0.1312, allocations: 161.6 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.1326, allocations: 0.9829 MB / 356.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.1329, allocations: 162 kB / 356.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.1331, allocations: 82.06 kB / 356.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.1331, allocations: 8.188 kB / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000333/0.1334, allocations: 137.2 kB / 356.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1334, allocations: 0 / 356.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004815/0.1339, allocations: 227.3 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.134, allocations: 85.06 kB / 356.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.1342, allocations: 157.7 kB / 357 MB, free: 13.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.898e-05/0.1342, allocations: 41.69 kB / 357.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1343, allocations: 140.5 kB / 357.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.858e-05/0.1344, allocations: 55.2 kB / 357.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.418e-05/0.1344, allocations: 8 kB / 357.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1346, allocations: 330.8 kB / 357.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.1347, allocations: 63.97 kB / 357.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.1349, allocations: 136.5 kB / 357.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.135, allocations: 76.45 kB / 357.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1351, allocations: 0 / 357.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003911/0.1355, allocations: 253.2 kB / 358.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.1355, allocations: 6.344 kB / 358.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1355, allocations: 8 kB / 358.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1355, allocations: 4 kB / 358.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.1357, allocations: 40.14 kB / 358.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1357, allocations: 8 kB / 358.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.1358, allocations: 31.72 kB / 358.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.181e-05/0.1358, allocations: 19.94 kB / 358.2 MB, free: 12.47 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.0001743/0.136, allocations: 158.4 kB / 358.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.1361, allocations: 19.75 kB / 358.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003678/0.1364, allocations: 186.3 kB / 358.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.1364, allocations: 8 kB / 358.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1365, allocations: 0 / 358.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.1365, allocations: 3.984 kB / 358.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008024/0.1373, allocations: 0.5953 MB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1373, allocations: 4 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.903e-05/0.1374, allocations: 8 kB / 359.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.1374, allocations: 4 kB / 359.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.1374, allocations: 15.94 kB / 359.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.1374, allocations: 4 kB / 359.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.1374, allocations: 0 / 359.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003385/0.1378, allocations: 284.4 kB / 359.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.735e-05/0.1378, allocations: 92.95 kB / 359.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.1379, allocations: 4 kB / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.38e-05/0.138, allocations: 19.94 kB / 359.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.205e-05/0.1381, allocations: 23.97 kB / 359.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.1381, allocations: 8 kB / 359.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.486e-05/0.1382, allocations: 99.27 kB / 359.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1382, allocations: 0 / 359.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.1385, allocations: 55.75 kB / 359.8 MB, free: 10.78 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,step.localActive,transition1.enableFire,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.0007911/0.1393, allocations: 0.83 MB / 360.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003656/0.1397, allocations: 179.7 kB / 360.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1397, allocations: 0 / 360.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.1398, allocations: 80.34 kB / 360.9 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.1402, allocations: 28.56 kB / 360.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.1419, allocations: 1.004 MB / 361.9 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.1423, allocations: 0.7445 MB / 362.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.007e-05/0.1424, allocations: 17.95 kB / 362.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.1425, allocations: 63.47 kB / 362.7 MB, free: 7.699 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1425, allocations: 0 / 362.7 MB, free: 7.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01649/0.159, allocations: 3.385 MB / 366.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/0.1592, allocations: 183.5 kB / 366.3 MB, free: 4.215 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.021/2.18, allocations: 0 / 366.3 MB, free: 4.215 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat