Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_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.001433/0.001433, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001262/0.001261, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 51.84 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1822, allocations: 49.45 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004186/0.1864, allocations: 1.694 MB / 351.8 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.1876, allocations: 287.2 kB / 352.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002779/0.1879, allocations: 7.938 kB / 352.1 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002318/0.1881, allocations: 19.73 kB / 352.2 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.1883, allocations: 23.73 kB / 352.2 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007013/0.189, allocations: 111.8 kB / 352.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000552/0.1896, allocations: 275.5 kB / 352.6 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004394/0.19, allocations: 185.5 kB / 352.7 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.1901, allocations: 87.7 kB / 352.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.1903, allocations: 103.5 kB / 352.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.817e-05/0.1904, allocations: 24 kB / 352.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.1905, allocations: 39.98 kB / 353 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.027e-05/0.1906, allocations: 55.83 kB / 353 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.1907, allocations: 95.53 kB / 353.1 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003209/0.1911, allocations: 239.5 kB / 353.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1911, allocations: 0 / 353.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1911, allocations: 0 / 353.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.1911, allocations: 0 / 353.4 MB, free: 1.094 MB / 286.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.0007738/0.1919, allocations: 498.7 kB / 353.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.1919, allocations: 8.031 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.084e-05/0.192, allocations: 66.72 kB / 353.9 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.221e-05/0.1921, allocations: 24.66 kB / 354 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.1924, allocations: 232 kB / 354.2 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.987e-05/0.1924, allocations: 20.94 kB / 354.2 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.1925, allocations: 28.38 kB / 354.2 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005238/0.193, allocations: 274.5 kB / 354.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.1931, allocations: 11.92 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/0.1931, allocations: 12 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.1931, allocations: 8 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003632/0.1935, allocations: 165.6 kB / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.1952, allocations: 0.9631 MB / 355.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.1956, allocations: 185.4 kB / 355.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.1958, allocations: 89.67 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.1958, allocations: 0 / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003583/0.1962, allocations: 137 kB / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.744e-06/0.1962, allocations: 0 / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005504/0.1967, allocations: 228.8 kB / 356.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.827e-05/0.1968, allocations: 85.05 kB / 356.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.197, allocations: 153.6 kB / 356.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.1971, allocations: 37.7 kB / 356.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.1972, allocations: 140.5 kB / 356.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.734e-05/0.1973, allocations: 63.33 kB / 356.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.1975, allocations: 85.67 kB / 356.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.1977, allocations: 322.8 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.1978, allocations: 67.97 kB / 357.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.1981, allocations: 140.3 kB / 357.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003608/0.1984, allocations: 201 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.1985, allocations: 4 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004758/0.1989, allocations: 249.2 kB / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.199, allocations: 4 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.199, allocations: 4.281 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.914e-05/0.199, allocations: 11.94 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.1992, allocations: 31.92 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.1992, allocations: 7.984 kB / 357.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.1994, allocations: 23.75 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.1994, allocations: 16 kB / 357.9 MB, free: 12.22 MB / 302.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: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0002233/0.1996, allocations: 169.6 kB / 358.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.1997, allocations: 11.81 kB / 358.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003576/0.2, allocations: 190.4 kB / 358.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2001, allocations: 0 / 358.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2001, allocations: 0 / 358.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.2001, allocations: 7.984 kB / 358.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007686/0.2009, allocations: 0.587 MB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2009, allocations: 0 / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.659e-05/0.201, allocations: 19.94 kB / 358.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.201, allocations: 11.92 kB / 358.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.201, allocations: 4 kB / 358.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.201, allocations: 4 kB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.201, allocations: 0 / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003362/0.2013, allocations: 296.4 kB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.358e-05/0.2014, allocations: 96.8 kB / 359.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.2015, allocations: 8 kB / 359.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.206e-05/0.2016, allocations: 11.98 kB / 359.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.2016, allocations: 19.97 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.887e-05/0.2017, allocations: 8 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.435e-05/0.2017, allocations: 98.89 kB / 359.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.2017, allocations: 0 / 359.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003369/0.2021, allocations: 51.84 kB / 359.5 MB, free: 10.53 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007828/0.2029, allocations: 0.834 MB / 360.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004835/0.2034, allocations: 203.9 kB / 360.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2034, allocations: 0 / 360.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.2035, allocations: 84.34 kB / 360.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.2039, allocations: 24.55 kB / 360.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.2063, allocations: 2.065 MB / 362.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.2066, allocations: 0.7363 MB / 363.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.659e-05/0.2067, allocations: 21.95 kB / 363.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.2069, allocations: 63.41 kB / 363.5 MB, free: 6.301 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2069, allocations: 0 / 363.5 MB, free: 6.301 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03399/0.2409, allocations: 3.633 MB / 367.1 MB, free: 2.738 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.57/8.811, allocations: 7.609 kB / 367.1 MB, free: 2.734 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches