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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.0009203/0.0009203, allocations: 100.7 kB / 16.94 MB, free: 5.719 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.0009676/0.0009678, allocations: 185.8 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205.4 MB / 224 MB, free: 13.02 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004409, allocations: 12 kB / 280.8 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08209/0.08254, allocations: 47.58 MB / 328.4 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001778/0.08436, allocations: 1.403 MB / 329.8 MB, free: 2.547 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005139/0.0849, allocations: 275.1 kB / 330.1 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.922e-05/0.08499, allocations: 4 kB / 330.1 MB, free: 2.273 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.365e-05/0.08509, allocations: 23.81 kB / 330.1 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.428e-05/0.08514, allocations: 7.969 kB / 330.1 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.08543, allocations: 95.83 kB / 330.2 MB, free: 2.148 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.08565, allocations: 151.7 kB / 330.4 MB, free: 2 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.08587, allocations: 145.9 kB / 330.5 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.013e-05/0.08595, allocations: 71.77 kB / 330.6 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.277e-05/0.08605, allocations: 71.62 kB / 330.6 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.08608, allocations: 12 kB / 330.7 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.031e-05/0.08614, allocations: 12 kB / 330.7 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.597e-05/0.08619, allocations: 47.77 kB / 330.7 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.206e-05/0.08624, allocations: 49.64 kB / 330.8 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.0864, allocations: 171.9 kB / 330.9 MB, free: 1.422 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.853e-06/0.08641, allocations: 3.938 kB / 330.9 MB, free: 1.418 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08642, allocations: 0 / 330.9 MB, free: 1.418 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.08643, allocations: 0 / 330.9 MB, free: 1.418 MB / 270.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.0004605/0.08689, allocations: 449.8 kB / 331.4 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.08693, allocations: 12.03 kB / 331.4 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.664e-05/0.087, allocations: 54.55 kB / 331.4 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.132e-05/0.08704, allocations: 19.81 kB / 331.5 MB, free: 0.832 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.08725, allocations: 230.7 kB / 331.7 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.08729, allocations: 24.56 kB / 331.7 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.08733, allocations: 27.95 kB / 331.7 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.08771, allocations: 270 kB / 332 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.08773, allocations: 4 kB / 332 MB, free: 224 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.08776, allocations: 8 kB / 332 MB, free: 216 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.08778, allocations: 8 kB / 332 MB, free: 208 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002592/0.08804, allocations: 169.5 kB / 332.2 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009946/0.08905, allocations: 0.9674 MB / 333.1 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.08929, allocations: 151.3 kB / 333.3 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.08931, allocations: 8.188 kB / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.08952, allocations: 115.6 kB / 333.4 MB, free: 14.71 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.08953, allocations: 0 / 333.4 MB, free: 14.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003442/0.08988, allocations: 209.9 kB / 333.6 MB, free: 14.5 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.08992, allocations: 63.39 kB / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.09003, allocations: 156.8 kB / 333.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.09007, allocations: 37.7 kB / 333.9 MB, free: 14.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.028e-05/0.09014, allocations: 140.5 kB / 334 MB, free: 14.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/0.0902, allocations: 63.17 kB / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.342e-05/0.09022, allocations: 12 kB / 334.1 MB, free: 14.01 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.552e-05/0.09031, allocations: 322.8 kB / 334.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.09042, allocations: 60.62 kB / 334.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.09057, allocations: 141.7 kB / 334.6 MB, free: 13.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.09069, allocations: 67.97 kB / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.0907, allocations: 0 / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003388/0.09104, allocations: 249.2 kB / 334.9 MB, free: 13.14 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.09106, allocations: 11.94 kB / 334.9 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.09107, allocations: 0 / 334.9 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.09109, allocations: 7.953 kB / 334.9 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.09122, allocations: 35.92 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.09124, allocations: 4 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.09134, allocations: 35.98 kB / 335 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.269e-05/0.09138, allocations: 16 kB / 335 MB, free: 13.04 MB / 286.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,$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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.09152, allocations: 148.4 kB / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.09154, allocations: 23.8 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002886/0.09184, allocations: 182.3 kB / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.09185, allocations: 7.953 kB / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.09186, allocations: 3.938 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.09187, allocations: 4 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006034/0.09248, allocations: 0.5877 MB / 336 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.0925, allocations: 3.953 kB / 336 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.232e-05/0.09257, allocations: 15.98 kB / 336 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.09258, allocations: 0 / 336 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.0926, allocations: 8 kB / 336 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.09261, allocations: 3.938 kB / 336 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.09262, allocations: 4 kB / 336 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.09287, allocations: 267.2 kB / 336.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.09291, allocations: 96.91 kB / 336.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.09294, allocations: 4 kB / 336.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.182e-05/0.09304, allocations: 11.98 kB / 336.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.09312, allocations: 15.97 kB / 336.4 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.09314, allocations: 16 kB / 336.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.181e-05/0.0932, allocations: 95.27 kB / 336.5 MB, free: 11.45 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09321, allocations: 4 kB / 336.5 MB, free: 11.44 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002859/0.0935, allocations: 47.84 kB / 336.5 MB, free: 11.39 MB / 286.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.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: 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 (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.0005072/0.09401, allocations: 0.818 MB / 337.4 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002635/0.0943, allocations: 187.8 kB / 337.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.09431, allocations: 0 / 337.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.09443, allocations: 79.91 kB / 337.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001764/0.09461, allocations: 12 kB / 337.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.09617, allocations: 2.326 MB / 340 MB, free: 7.863 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.09641, allocations: 0.7523 MB / 340.7 MB, free: 7.086 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.587e-05/0.09649, allocations: 25.94 kB / 340.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.113e-05/0.09659, allocations: 63.41 kB / 340.8 MB, free: 7 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.0966, allocations: 0 / 340.8 MB, free: 7 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01235/0.109, allocations: 3.3 MB / 344.1 MB, free: 3.711 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.1092, allocations: 194.8 kB / 344.3 MB, free: 3.457 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.599/1.708, allocations: 0 / 344.3 MB, free: 3.457 MB / 286.1 MB (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/linux/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 --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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat