Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 195.5 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 226.5 MB / 244.7 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008136/0.0008137, allocations: 96.97 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002341/0.0002341, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.1999, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001384/0.2013, allocations: 1.426 MB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000538/0.2019, allocations: 299.7 kB / 409.8 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.768e-05/0.202, allocations: 5.531 kB / 409.8 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.89e-05/0.2021, allocations: 19.8 kB / 409.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.142e-05/0.2021, allocations: 11.86 kB / 409.9 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.2024, allocations: 100.7 kB / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.2026, allocations: 235.5 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.2029, allocations: 162.9 kB / 410.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.175e-05/0.2029, allocations: 71.7 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.203, allocations: 76.86 kB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.2031, allocations: 12 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.561e-05/0.2031, allocations: 19.98 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.18e-05/0.2032, allocations: 39.89 kB / 410.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.779e-05/0.2032, allocations: 107.8 kB / 410.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.2034, allocations: 155.7 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2034, allocations: 0 / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2034, allocations: 0 / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.2034, allocations: 0 / 410.8 MB, free: 24.98 MB / 298.7 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.0004793/0.2039, allocations: 459.5 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.2039, allocations: 8.031 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.172e-05/0.204, allocations: 58.72 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.196e-05/0.204, allocations: 20.75 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.2042, allocations: 240 kB / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.2043, allocations: 20.94 kB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.2043, allocations: 28.38 kB / 411.6 MB, free: 24.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.2047, allocations: 276.5 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.2047, allocations: 3.938 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.2047, allocations: 12 kB / 411.9 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2047, allocations: 11.98 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.205, allocations: 165.6 kB / 412.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00084/0.2058, allocations: 0.9633 MB / 413.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.2061, allocations: 177.4 kB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.481e-05/0.2062, allocations: 81.69 kB / 413.3 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.2062, allocations: 0 / 413.3 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001929/0.2064, allocations: 145.8 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.154e-06/0.2064, allocations: 3.984 kB / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003403/0.2067, allocations: 229 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.2068, allocations: 81.11 kB / 413.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.499e-05/0.2069, allocations: 153.5 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.2069, allocations: 33.7 kB / 414 MB, free: 21.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.264e-05/0.2069, allocations: 140.5 kB / 414.1 MB, free: 21.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.207, allocations: 63.25 kB / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.207, allocations: 4.125 kB / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.906e-05/0.2071, allocations: 338.7 kB / 414.5 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.224e-05/0.2072, allocations: 59.97 kB / 414.5 MB, free: 20.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.2073, allocations: 140.3 kB / 414.7 MB, free: 20.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.2075, allocations: 192.9 kB / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2075, allocations: 0 / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002855/0.2078, allocations: 245.3 kB / 415.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2078, allocations: 4 kB / 415.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2078, allocations: 4 kB / 415.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.2078, allocations: 7.984 kB / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.208, allocations: 36.2 kB / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.208, allocations: 7.938 kB / 415.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.213e-05/0.2081, allocations: 31.69 kB / 415.2 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.2081, allocations: 12 kB / 415.2 MB, free: 20.25 MB / 298.7 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.2082, allocations: 166.3 kB / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.874e-05/0.2082, allocations: 11.81 kB / 415.4 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.2085, allocations: 190.4 kB / 415.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2085, allocations: 8 kB / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2085, allocations: 0 / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.2085, allocations: 0 / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000514/0.209, allocations: 0.5986 MB / 416.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2091, allocations: 0 / 416.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.727e-05/0.2091, allocations: 23.92 kB / 416.2 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2091, allocations: 3.938 kB / 416.2 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.2092, allocations: 4 kB / 416.2 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2092, allocations: 4 kB / 416.2 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2092, allocations: 0 / 416.2 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002177/0.2094, allocations: 288.4 kB / 416.5 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.369e-05/0.2094, allocations: 100.8 kB / 416.6 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.2095, allocations: 7.984 kB / 416.6 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.863e-05/0.2096, allocations: 12 kB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.366e-05/0.2096, allocations: 19.97 kB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.2096, allocations: 11.98 kB / 416.6 MB, free: 18.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.403e-05/0.2097, allocations: 95.27 kB / 416.7 MB, free: 18.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2097, allocations: 0 / 416.7 MB, free: 18.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00027/0.21, allocations: 51.84 kB / 416.8 MB, free: 18.55 MB / 298.7 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.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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003856/0.2104, allocations: 0.8262 MB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000238/0.2106, allocations: 187.7 kB / 417.8 MB, free: 17.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2106, allocations: 0 / 417.8 MB, free: 17.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.2107, allocations: 87.84 kB / 417.9 MB, free: 17.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.211, allocations: 22.97 kB / 417.9 MB, free: 17.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.2121, allocations: 1.005 MB / 418.9 MB, free: 16.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.2122, allocations: 0.7405 MB / 419.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.784e-05/0.2123, allocations: 63.41 kB / 419.7 MB, free: 15.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2123, allocations: 0 / 419.7 MB, free: 15.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.717/2.929, allocations: 2.79 MB / 422.5 MB, free: 12.68 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches