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.00119/0.00119, allocations: 106.4 kB / 17.15 MB, free: 6.305 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.001284/0.001284, allocations: 198 kB / 18.07 MB, free: 5.41 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.213/1.213, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001044/0.001044, allocations: 51.92 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07528/0.07633, allocations: 46.63 MB / 326.7 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002635/0.07901, allocations: 1.784 MB / 328.5 MB, free: 3.008 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005483/0.07958, allocations: 271.1 kB / 328.7 MB, free: 2.742 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.55e-05/0.07966, allocations: 7.938 kB / 328.7 MB, free: 2.734 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.07978, allocations: 11.86 kB / 328.7 MB, free: 2.723 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.115e-05/0.07984, allocations: 15.92 kB / 328.8 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.08013, allocations: 103.8 kB / 328.9 MB, free: 2.605 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.08038, allocations: 251.5 kB / 329.1 MB, free: 2.359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002218/0.08061, allocations: 173.8 kB / 329.3 MB, free: 2.195 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.708e-05/0.0807, allocations: 75.72 kB / 329.4 MB, free: 2.121 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.08081, allocations: 91.59 kB / 329.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.08085, allocations: 16 kB / 329.5 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.474e-05/0.08092, allocations: 27.98 kB / 329.5 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.338e-05/0.08097, allocations: 47.83 kB / 329.5 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.98e-05/0.08106, allocations: 99.41 kB / 329.6 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.08126, allocations: 211.5 kB / 329.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.08128, allocations: 0 / 329.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.08128, allocations: 4 kB / 329.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.08129, allocations: 0 / 329.8 MB, free: 1.633 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.0005532/0.08185, allocations: 498 kB / 330.3 MB, free: 1.086 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.08189, allocations: 8.031 kB / 330.3 MB, free: 1.078 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.097e-05/0.08196, allocations: 62.72 kB / 330.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.181e-05/0.08202, allocations: 28.66 kB / 330.4 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.08224, allocations: 236 kB / 330.7 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.08228, allocations: 20.94 kB / 330.7 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.39e-05/0.08232, allocations: 28.38 kB / 330.7 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.08271, allocations: 274.6 kB / 331 MB, free: 380 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.08273, allocations: 7.875 kB / 331 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.08276, allocations: 12 kB / 331 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.08277, allocations: 4 kB / 331 MB, free: 356 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/0.08304, allocations: 165.5 kB / 331.2 MB, free: 192 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009479/0.08399, allocations: 0.9672 MB / 332.1 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002407/0.08424, allocations: 158.7 kB / 332.3 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.08436, allocations: 72.83 kB / 332.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.08438, allocations: 4 kB / 332.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.08459, allocations: 115.3 kB / 332.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.0846, allocations: 0 / 332.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.000367/0.08497, allocations: 213.3 kB / 332.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.08501, allocations: 55.41 kB / 332.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.08512, allocations: 158.8 kB / 332.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.08516, allocations: 37.7 kB / 332.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.409e-05/0.08524, allocations: 140.4 kB / 333.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.08528, allocations: 59.28 kB / 333.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.002e-05/0.08538, allocations: 85.91 kB / 333.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.631e-05/0.08547, allocations: 326.8 kB / 333.5 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.08558, allocations: 60.62 kB / 333.6 MB, free: 13.62 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.08573, allocations: 149.7 kB / 333.7 MB, free: 13.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.08595, allocations: 192.3 kB / 333.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.08596, allocations: 0 / 333.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003342/0.0863, allocations: 241.3 kB / 334.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.08632, allocations: 8 kB / 334.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.08633, allocations: 4.281 kB / 334.2 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.08635, allocations: 7.938 kB / 334.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.08648, allocations: 35.92 kB / 334.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.0865, allocations: 4 kB / 334.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.677e-05/0.0866, allocations: 31.67 kB / 334.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.845e-05/0.08664, allocations: 19.94 kB / 334.3 MB, free: 12.88 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001134/0.08676, allocations: 152.3 kB / 334.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.08679, allocations: 19.8 kB / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002959/0.08709, allocations: 194.3 kB / 334.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.0871, allocations: 0 / 334.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.08712, allocations: 8 kB / 334.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.08712, allocations: 0 / 334.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006023/0.08773, allocations: 0.5871 MB / 335.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.08774, allocations: 0 / 335.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.847e-05/0.08782, allocations: 19.92 kB / 335.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.08783, allocations: 11.98 kB / 335.2 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.08785, allocations: 4 kB / 335.2 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.08786, allocations: 0 / 335.2 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.08786, allocations: 3.938 kB / 335.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.08812, allocations: 271.2 kB / 335.5 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.08817, allocations: 92.89 kB / 335.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.0882, allocations: 8 kB / 335.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.615e-05/0.08829, allocations: 3.984 kB / 335.6 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.21e-05/0.08836, allocations: 27.97 kB / 335.6 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.08838, allocations: 4 kB / 335.6 MB, free: 11.37 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.844e-05/0.08843, allocations: 99.97 kB / 335.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.08844, allocations: 0 / 335.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.08872, allocations: 51.84 kB / 335.8 MB, free: 11.22 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 (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.0005045/0.08923, allocations: 0.8218 MB / 336.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000276/0.08952, allocations: 191.7 kB / 336.8 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.08953, allocations: 4 kB / 336.8 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.08965, allocations: 75.92 kB / 336.9 MB, free: 10.11 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.08991, allocations: 19.98 kB / 336.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.09174, allocations: 2.097 MB / 339 MB, free: 7.859 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.09198, allocations: 0.7326 MB / 339.7 MB, free: 7.102 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.919e-05/0.09207, allocations: 25.94 kB / 339.8 MB, free: 7.078 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.76e-05/0.09217, allocations: 63.62 kB / 339.8 MB, free: 7.016 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09218, allocations: 7.938 kB / 339.8 MB, free: 7.008 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0121/0.1043, allocations: 3.379 MB / 343.2 MB, free: 3.602 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/0.1045, allocations: 202.8 kB / 343.4 MB, free: 3.344 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/1.86, allocations: 3.938 kB / 343.4 MB, free: 3.34 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/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) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches