Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_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.001971/0.001972, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.00265/0.002651, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.197/2.197, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00236/0.00236, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6324/0.6348, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.004239/0.6391, allocations: 1.475 MB / 401.7 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009585/0.6401, allocations: 278.8 kB / 402 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.6402, allocations: 3.156 kB / 402 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001865/0.6404, allocations: 26.88 kB / 402 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.799e-05/0.6405, allocations: 17.05 kB / 402 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005967/0.6411, allocations: 109.4 kB / 402.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005205/0.6417, allocations: 271.5 kB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004081/0.6421, allocations: 162.4 kB / 402.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.6422, allocations: 87.75 kB / 402.6 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.6425, allocations: 91.61 kB / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.197e-05/0.6425, allocations: 23.94 kB / 402.7 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.6427, allocations: 31.98 kB / 402.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.452e-05/0.6428, allocations: 51.89 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.6429, allocations: 91.53 kB / 402.9 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004139/0.6433, allocations: 251.1 kB / 403.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.177e-05/0.6434, allocations: 3.938 kB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6434, allocations: 3.938 kB / 403.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.6434, allocations: 4 kB / 403.2 MB, free: 5.863 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.001016/0.6444, allocations: 480.3 kB / 403.6 MB, free: 5.344 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.033e-05/0.6445, allocations: 12.03 kB / 403.6 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.6446, allocations: 54.73 kB / 403.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.392e-05/0.6447, allocations: 20.66 kB / 403.7 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004984/0.6452, allocations: 228 kB / 403.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.62e-05/0.6453, allocations: 24.94 kB / 404 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.6454, allocations: 28.31 kB / 404 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006099/0.646, allocations: 248 kB / 404.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.646, allocations: 3.938 kB / 404.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.662e-05/0.646, allocations: 15.98 kB / 404.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.6461, allocations: 4 kB / 404.3 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004424/0.6465, allocations: 153.7 kB / 404.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.648, allocations: 0.7011 MB / 405.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/0.6485, allocations: 166.8 kB / 405.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.6488, allocations: 76.88 kB / 405.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.863e-05/0.6488, allocations: 7.938 kB / 405.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003481/0.6492, allocations: 119.3 kB / 405.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.905e-06/0.6492, allocations: 0 / 405.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007722/0.65, allocations: 219 kB / 405.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.109e-05/0.6501, allocations: 55.41 kB / 405.7 MB, free: 3.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.6503, allocations: 156.6 kB / 405.9 MB, free: 2.922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.487e-05/0.6504, allocations: 33.7 kB / 405.9 MB, free: 2.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.6506, allocations: 136.6 kB / 406.1 MB, free: 2.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.6507, allocations: 59.19 kB / 406.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.6509, allocations: 85.91 kB / 406.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002719/0.6512, allocations: 326.8 kB / 406.5 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.6515, allocations: 68.56 kB / 406.6 MB, free: 2.199 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.6528, allocations: 128.1 kB / 406.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005078/0.6533, allocations: 175.2 kB / 406.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.6533, allocations: 0 / 406.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006728/0.654, allocations: 245.3 kB / 407.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.6541, allocations: 10.33 kB / 407.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.6541, allocations: 4 kB / 407.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.292e-05/0.6541, allocations: 4 kB / 407.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.6544, allocations: 23.92 kB / 407.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.905e-05/0.6544, allocations: 11.88 kB / 407.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.6546, allocations: 23.75 kB / 407.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-05/0.6546, allocations: 19.98 kB / 407.2 MB, free: 1.516 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.0002362/0.6549, allocations: 165.9 kB / 407.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.6549, allocations: 15.75 kB / 407.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005146/0.6555, allocations: 194.4 kB / 407.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.6555, allocations: 4 kB / 407.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.6555, allocations: 0 / 407.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.6555, allocations: 0 / 407.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.6567, allocations: 0.5647 MB / 408.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.6567, allocations: 4 kB / 408.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.6568, allocations: 19.92 kB / 408.2 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.6568, allocations: 4 kB / 408.2 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.6569, allocations: 4 kB / 408.2 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.6569, allocations: 0 / 408.2 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.6569, allocations: 3.938 kB / 408.2 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/0.6573, allocations: 287.1 kB / 408.5 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.428e-05/0.6574, allocations: 85.02 kB / 408.5 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.6575, allocations: 12 kB / 408.6 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.6576, allocations: 7.984 kB / 408.6 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.6577, allocations: 27.91 kB / 408.6 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.6578, allocations: 8 kB / 408.6 MB, free: 20 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.6579, allocations: 95.27 kB / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6579, allocations: 0 / 408.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004686/0.6584, allocations: 47.84 kB / 408.7 MB, free: 15.88 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: 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.0009482/0.6593, allocations: 0.8258 MB / 409.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004709/0.6598, allocations: 188 kB / 409.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.6598, allocations: 0 / 409.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001847/0.66, allocations: 83.91 kB / 409.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.6605, allocations: 20.38 kB / 409.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003146/0.6636, allocations: 2.008 MB / 411.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.664, allocations: 0.7324 MB / 412.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.6642, allocations: 21.94 kB / 412.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.6643, allocations: 67.53 kB / 412.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.6643, allocations: 0 / 412.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06046/0.7248, allocations: 3.73 MB / 416.4 MB, free: 8.105 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/17.33, allocations: 2.969 kB / 416.4 MB, free: 8.105 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches