Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001546/0.001546, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001749/0.001749, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003086/0.003086, allocations: 63.89 kB / 358.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3516, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002596/0.3543, allocations: 1.485 MB / 410.3 MB, free: 20 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006512/0.3549, allocations: 275.2 kB / 410.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.378e-05/0.355, allocations: 7.938 kB / 410.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.3552, allocations: 23.75 kB / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.041e-05/0.3552, allocations: 19.8 kB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003762/0.3556, allocations: 111.8 kB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.3559, allocations: 251.6 kB / 411 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003163/0.3563, allocations: 185.8 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.3564, allocations: 87.75 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.3565, allocations: 103.5 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.776e-05/0.3566, allocations: 24 kB / 411.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.364e-05/0.3566, allocations: 27.94 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.554e-05/0.3567, allocations: 51.89 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.3568, allocations: 95.52 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.3571, allocations: 242 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3571, allocations: 4 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3571, allocations: 4 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3572, allocations: 0 / 411.8 MB, free: 14.54 MB / 334.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.0006655/0.3578, allocations: 482.3 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3579, allocations: 8.031 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.243e-05/0.3579, allocations: 58.73 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.3582, allocations: 28.83 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.3585, allocations: 232 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.3585, allocations: 24.88 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.3586, allocations: 28.38 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.359, allocations: 236 kB / 412.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.359, allocations: 3.938 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/0.359, allocations: 8 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3591, allocations: 4 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003097/0.3594, allocations: 165.6 kB / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3604, allocations: 0.6858 MB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.3607, allocations: 174.2 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.3608, allocations: 76.83 kB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.3609, allocations: 3.938 kB / 414 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002083/0.3611, allocations: 130.4 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.964e-06/0.3611, allocations: 0 / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004435/0.3615, allocations: 217.3 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.3616, allocations: 55.41 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.3617, allocations: 142 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.3618, allocations: 41.69 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.829e-05/0.3619, allocations: 128.9 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.83e-05/0.3619, allocations: 67.48 kB / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.3621, allocations: 74.02 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3622, allocations: 330.8 kB / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.3623, allocations: 56.64 kB / 415.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.3625, allocations: 128.1 kB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.3628, allocations: 174.6 kB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3628, allocations: 0 / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003668/0.3632, allocations: 245.3 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.3632, allocations: 4 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3632, allocations: 4 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.3632, allocations: 4 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.3634, allocations: 31.86 kB / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.3634, allocations: 7.938 kB / 415.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.409e-05/0.3635, allocations: 31.98 kB / 415.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.3635, allocations: 16 kB / 415.8 MB, free: 10.2 MB / 334.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.0001492/0.3637, allocations: 161.6 kB / 416 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.134e-05/0.3637, allocations: 11.95 kB / 416 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/0.3637, allocations: 20.84 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3638, allocations: 0 / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3638, allocations: 0 / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3638, allocations: 0 / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006947/0.3645, allocations: 0.556 MB / 416.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3645, allocations: 0 / 416.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.391e-05/0.3646, allocations: 19.98 kB / 416.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3646, allocations: 4 kB / 416.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.3646, allocations: 0 / 416.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3646, allocations: 0 / 416.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3646, allocations: 0 / 416.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003103/0.3649, allocations: 275.8 kB / 416.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.258e-05/0.365, allocations: 93 kB / 416.9 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.573e-05/0.365, allocations: 8 kB / 416.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.713e-05/0.3651, allocations: 11.98 kB / 416.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/0.3652, allocations: 19.92 kB / 417 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.3652, allocations: 7.984 kB / 417 MB, free: 8.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.539e-05/0.3653, allocations: 99.27 kB / 417.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3653, allocations: 0 / 417.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.3656, allocations: 51.84 kB / 417.1 MB, free: 8.781 MB / 334.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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 (24): * Single equations (assignments): 20 * 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.0006257/0.3662, allocations: 0.8072 MB / 417.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000317/0.3666, allocations: 168.1 kB / 418.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3666, allocations: 0 / 418.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.3667, allocations: 87.83 kB / 418.2 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.367, allocations: 27.17 kB / 418.2 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.3693, allocations: 1.991 MB / 420.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.3697, allocations: 0.7361 MB / 420.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.225e-05/0.3698, allocations: 21.94 kB / 421 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.3699, allocations: 55.42 kB / 421 MB, free: 4.719 MB / 334.1 MB Notification: Performance of SimCode: time 4.8e-07/0.3699, allocations: 3.938 kB / 421 MB, free: 4.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.3951, allocations: 3.396 MB / 424.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.001/8.396, allocations: 8 kB / 424.4 MB, free: 1.379 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches