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.001974/0.001974, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.002094/0.002094, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.401/1.401, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001607/0.001607, allocations: 59.91 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0878/0.08941, allocations: 46.62 MB / 374.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002413/0.09186, allocations: 1.477 MB / 376.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005901/0.09246, allocations: 247.3 kB / 376.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.219e-05/0.09256, allocations: 11.94 kB / 376.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.09271, allocations: 19.75 kB / 376.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.646e-05/0.09276, allocations: 19.8 kB / 376.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003589/0.09312, allocations: 103.8 kB / 376.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003115/0.09345, allocations: 259.6 kB / 376.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002728/0.09373, allocations: 166.4 kB / 376.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.957e-05/0.09384, allocations: 91.69 kB / 377 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.09397, allocations: 95.55 kB / 377.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.09403, allocations: 24 kB / 377.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.562e-05/0.09411, allocations: 27.98 kB / 377.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.09418, allocations: 55.83 kB / 377.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.09429, allocations: 99.53 kB / 377.3 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.09459, allocations: 247 kB / 377.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.0946, allocations: 0 / 377.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.0946, allocations: 0 / 377.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.09461, allocations: 0 / 377.5 MB, free: 2.184 MB / 318.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.0006542/0.09527, allocations: 494.2 kB / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.09531, allocations: 8.031 kB / 378 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.101e-05/0.09538, allocations: 54.73 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.197e-05/0.09544, allocations: 24.8 kB / 378.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.09573, allocations: 232.1 kB / 378.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/0.09577, allocations: 20.94 kB / 378.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.09581, allocations: 24.38 kB / 378.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.09623, allocations: 244 kB / 378.6 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.09625, allocations: 3.938 kB / 378.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.09629, allocations: 11.94 kB / 378.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.0963, allocations: 8 kB / 378.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003057/0.09661, allocations: 157.6 kB / 378.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009604/0.09758, allocations: 0.6976 MB / 379.5 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.174/0.2716, allocations: 170 kB / 379.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.2718, allocations: 84.09 kB / 379.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.2719, allocations: 6.344 kB / 379.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.2721, allocations: 125.5 kB / 379.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.564e-06/0.2721, allocations: 0 / 379.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00044/0.2725, allocations: 221.3 kB / 380.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.2726, allocations: 55.34 kB / 380.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.2727, allocations: 147.5 kB / 380.3 MB, free: 12.58 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.2728, allocations: 37.25 kB / 380.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.345e-05/0.2728, allocations: 131.8 kB / 380.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.2729, allocations: 67.91 kB / 380.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-05/0.273, allocations: 73.33 kB / 380.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.839e-05/0.2731, allocations: 327.1 kB / 380.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.2732, allocations: 61.62 kB / 381 MB, free: 12.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.2733, allocations: 133.7 kB / 381.1 MB, free: 12.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.2735, allocations: 177.2 kB / 381.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.2735, allocations: 4.625 kB / 381.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000338/0.2739, allocations: 240 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.2739, allocations: 6.484 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2739, allocations: 4.094 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.274, allocations: 2.75 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.2741, allocations: 32.14 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.2741, allocations: 7.438 kB / 381.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.286e-05/0.2742, allocations: 27.72 kB / 381.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.2742, allocations: 15.5 kB / 381.6 MB, free: 11.9 MB / 318.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.0001106/0.2744, allocations: 153.7 kB / 381.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.2744, allocations: 13.41 kB / 381.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003566/0.2748, allocations: 200.1 kB / 382 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.2748, allocations: 10.5 kB / 382 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.2748, allocations: 4.438 kB / 382 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.2748, allocations: 1.469 kB / 382 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000714/0.2755, allocations: 0.5633 MB / 382.5 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2755, allocations: 1.109 kB / 382.5 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.511e-05/0.2756, allocations: 18.12 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2756, allocations: 1.703 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.2756, allocations: 5.656 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.2757, allocations: 4.906 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2757, allocations: 1.234 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.276, allocations: 279.8 kB / 382.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.666e-05/0.276, allocations: 90.16 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/0.2761, allocations: 6.812 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.836e-05/0.2762, allocations: 11.97 kB / 382.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.697e-05/0.2762, allocations: 22.42 kB / 383 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.2763, allocations: 9.531 kB / 383 MB, free: 11.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.85e-05/0.2763, allocations: 97.62 kB / 383.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2763, allocations: 0 / 383.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.2766, allocations: 50.14 kB / 383.1 MB, free: 11.01 MB / 318.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.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (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.0004528/0.2771, allocations: 0.8398 MB / 384 MB, free: 10.28 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003175/0.2774, allocations: 183.9 kB / 384.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2774, allocations: 1.375 kB / 384.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001297/0.2776, allocations: 84.94 kB / 384.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.2778, allocations: 19.12 kB / 384.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.2795, allocations: 2.012 MB / 386.3 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.2797, allocations: 0.729 MB / 387 MB, free: 7.887 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.936e-05/0.2798, allocations: 26.38 kB / 387 MB, free: 7.883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.428e-05/0.2799, allocations: 59.56 kB / 387.1 MB, free: 7.844 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.2799, allocations: 3.938 kB / 387.1 MB, free: 7.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0254/0.3053, allocations: 3.66 MB / 390.7 MB, free: 7.156 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.075/8.38, allocations: 12.86 kB / 390.7 MB, free: 7.145 MB / 318.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches