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.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,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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.001386/0.001386, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001444/0.001444, allocations: 190 kB / 18.07 MB, free: 5.414 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.266/1.266, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001007/0.001007, allocations: 43.92 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07834/0.07935, allocations: 46.63 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002263/0.08164, allocations: 1.562 MB / 328.2 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005001/0.08216, allocations: 267.2 kB / 328.5 MB, free: 2.965 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.116e-05/0.08223, allocations: 4 kB / 328.5 MB, free: 2.961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.021e-05/0.08233, allocations: 19.8 kB / 328.5 MB, free: 2.941 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 3.346e-05/0.08237, allocations: 3.938 kB / 328.5 MB, free: 2.938 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.08262, allocations: 107.9 kB / 328.6 MB, free: 2.832 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.08284, allocations: 243.5 kB / 328.9 MB, free: 2.594 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/0.08303, allocations: 146.5 kB / 329 MB, free: 2.445 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.648e-05/0.08311, allocations: 79.77 kB / 329.1 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.561e-05/0.08321, allocations: 95.52 kB / 329.2 MB, free: 2.273 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.772e-05/0.08324, allocations: 19.94 kB / 329.2 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.233e-05/0.0833, allocations: 20 kB / 329.2 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.285e-05/0.08335, allocations: 43.89 kB / 329.3 MB, free: 2.191 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.267e-05/0.08343, allocations: 91.52 kB / 329.4 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.08361, allocations: 203.6 kB / 329.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.08362, allocations: 0 / 329.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.71e-07/0.08362, allocations: 0 / 329.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.08363, allocations: 0 / 329.6 MB, free: 1.902 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004635/0.0841, allocations: 494.5 kB / 330 MB, free: 1.367 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.08414, allocations: 8.031 kB / 330.1 MB, free: 1.359 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.17e-05/0.08419, allocations: 58.73 kB / 330.1 MB, free: 1.293 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.124e-05/0.08424, allocations: 20.75 kB / 330.1 MB, free: 1.273 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.08444, allocations: 231.9 kB / 330.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.08447, allocations: 20.94 kB / 330.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.08451, allocations: 24.38 kB / 330.4 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.08488, allocations: 240 kB / 330.6 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.0849, allocations: 11.88 kB / 330.6 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.08493, allocations: 12 kB / 330.7 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.08494, allocations: 4 kB / 330.7 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.08521, allocations: 161.6 kB / 330.8 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008228/0.08604, allocations: 0.7051 MB / 331.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000259/0.08631, allocations: 170.8 kB / 331.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.08643, allocations: 80.83 kB / 331.8 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.08646, allocations: 7.938 kB / 331.8 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.08668, allocations: 115.2 kB / 331.9 MB, free: 15.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.08669, allocations: 0 / 331.9 MB, free: 15.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003732/0.08707, allocations: 221.2 kB / 332.1 MB, free: 15.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.08712, allocations: 55.41 kB / 332.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.167e-05/0.08721, allocations: 149.9 kB / 332.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.08724, allocations: 33.7 kB / 332.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.095e-05/0.08732, allocations: 140.6 kB / 332.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.021e-05/0.08737, allocations: 55.2 kB / 332.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.828e-05/0.08746, allocations: 78.02 kB / 332.6 MB, free: 14.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.7e-05/0.08755, allocations: 318.8 kB / 332.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.08767, allocations: 68.61 kB / 333 MB, free: 14.23 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.08781, allocations: 132.1 kB / 333.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.08803, allocations: 178.6 kB / 333.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.08804, allocations: 0 / 333.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003424/0.08839, allocations: 245.2 kB / 333.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.08841, allocations: 7.938 kB / 333.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.08842, allocations: 0 / 333.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.08844, allocations: 4 kB / 333.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.08856, allocations: 27.92 kB / 333.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.08858, allocations: 4.219 kB / 333.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.248e-05/0.08868, allocations: 43.67 kB / 333.6 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.08871, allocations: 8 kB / 333.6 MB, free: 13.54 MB / 286.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.000123/0.08884, allocations: 165.7 kB / 333.8 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.967e-05/0.08886, allocations: 7.906 kB / 333.8 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003058/0.08917, allocations: 194.3 kB / 334 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.08919, allocations: 4 kB / 334 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.0892, allocations: 0 / 334 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.08921, allocations: 7.984 kB / 334 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006165/0.08983, allocations: 0.5685 MB / 334.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.08984, allocations: 0 / 334.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.14e-05/0.08992, allocations: 16 kB / 334.6 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.08993, allocations: 0 / 334.6 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.08995, allocations: 11.92 kB / 334.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.08996, allocations: 4 kB / 334.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.08997, allocations: 7.875 kB / 334.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.09023, allocations: 279.2 kB / 334.9 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-05/0.09028, allocations: 88.95 kB / 335 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.09031, allocations: 8 kB / 335 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.093e-05/0.0904, allocations: 0 / 335 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.506e-05/0.09047, allocations: 27.91 kB / 335 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.09049, allocations: 11.98 kB / 335 MB, free: 12.05 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.622e-05/0.09054, allocations: 95.77 kB / 335.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09055, allocations: 4 kB / 335.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.09083, allocations: 47.84 kB / 335.2 MB, free: 11.9 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.0005088/0.09134, allocations: 0.8219 MB / 336 MB, free: 11.05 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000271/0.09162, allocations: 176.3 kB / 336.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.09163, allocations: 4.062 kB / 336.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.09178, allocations: 91.84 kB / 336.2 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.09205, allocations: 24.3 kB / 336.3 MB, free: 10.76 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.09392, allocations: 2.057 MB / 338.3 MB, free: 8.582 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.09417, allocations: 0.7365 MB / 339.1 MB, free: 7.82 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.557e-05/0.09425, allocations: 29.94 kB / 339.1 MB, free: 7.793 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.431e-05/0.09435, allocations: 55.42 kB / 339.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of SimCode: time 2e-07/0.09435, allocations: 0 / 339.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01208/0.1064, allocations: 3.348 MB / 342.5 MB, free: 4.363 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/0.1066, allocations: 203.5 kB / 342.7 MB, free: 4.094 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/1.79, allocations: 0 / 342.7 MB, free: 4.094 MB / 286.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches