Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009048/0.000905, allocations: 174.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.188/1.188, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007139/0.000714, allocations: 98.27 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002938, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.202, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001549/0.2036, allocations: 1.395 MB / 376.6 MB, free: 44.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005106/0.2041, allocations: 279.6 kB / 376.8 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.964e-05/0.2042, allocations: 4.094 kB / 376.8 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.608e-05/0.2043, allocations: 19.2 kB / 376.9 MB, free: 44.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.86e-05/0.2044, allocations: 13.88 kB / 376.9 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002904/0.2047, allocations: 91.58 kB / 377 MB, free: 44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000246/0.205, allocations: 234.9 kB / 377.2 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.2052, allocations: 158.7 kB / 377.4 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.996e-05/0.2053, allocations: 76.77 kB / 377.4 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.504e-05/0.2054, allocations: 76.83 kB / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.2054, allocations: 10.53 kB / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.161e-05/0.2055, allocations: 25.09 kB / 377.5 MB, free: 43.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.494e-05/0.2055, allocations: 37.05 kB / 377.6 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.666e-05/0.2056, allocations: 105.4 kB / 377.7 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.2058, allocations: 157.1 kB / 377.8 MB, free: 43.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2058, allocations: 1.25 kB / 377.8 MB, free: 43.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.2058, allocations: 0 / 377.8 MB, free: 43.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.2058, allocations: 0 / 377.8 MB, free: 43.42 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.000484/0.2063, allocations: 445.2 kB / 378.3 MB, free: 42.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2063, allocations: 9 kB / 378.3 MB, free: 42.97 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.481e-05/0.2064, allocations: 62.81 kB / 378.3 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.2065, allocations: 29.19 kB / 378.4 MB, free: 42.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.2066, allocations: 239.2 kB / 378.6 MB, free: 42.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.2067, allocations: 24.09 kB / 378.6 MB, free: 42.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.636e-05/0.2067, allocations: 27.09 kB / 378.6 MB, free: 42.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004323/0.2072, allocations: 274.1 kB / 378.9 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.2072, allocations: 3.938 kB / 378.9 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.2072, allocations: 10.98 kB / 378.9 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.2072, allocations: 6.062 kB / 378.9 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000267/0.2075, allocations: 159.7 kB / 379.1 MB, free: 42.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008868/0.2084, allocations: 0.977 MB / 380.1 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002419/0.2087, allocations: 151.4 kB / 380.2 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.2088, allocations: 76.67 kB / 380.3 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.2088, allocations: 2.406 kB / 380.3 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.209, allocations: 111.8 kB / 380.4 MB, free: 41.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.793e-06/0.209, allocations: 0 / 380.4 MB, free: 41.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003618/0.2094, allocations: 205.6 kB / 380.6 MB, free: 41.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.2094, allocations: 64.03 kB / 380.7 MB, free: 41.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.66e-05/0.2095, allocations: 154.4 kB / 380.8 MB, free: 40.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.2095, allocations: 37.42 kB / 380.9 MB, free: 40.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.2096, allocations: 142.7 kB / 381 MB, free: 40.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.2096, allocations: 59.94 kB / 381.1 MB, free: 40.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.2097, allocations: 9.875 kB / 381.1 MB, free: 40.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.559e-05/0.2097, allocations: 329.7 kB / 381.4 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.2098, allocations: 61.34 kB / 381.4 MB, free: 40.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.21, allocations: 142 kB / 381.6 MB, free: 40.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.2102, allocations: 194.5 kB / 381.8 MB, free: 40.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2102, allocations: 1.062 kB / 381.8 MB, free: 40.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003296/0.2105, allocations: 243.9 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2105, allocations: 5.938 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2106, allocations: 2.719 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.2106, allocations: 4.156 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.2107, allocations: 34.08 kB / 382.1 MB, free: 39.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.2107, allocations: 11.73 kB / 382.1 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.2109, allocations: 26.34 kB / 382.1 MB, free: 39.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.2109, allocations: 10.44 kB / 382.1 MB, free: 39.87 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: 30 ($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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.211, allocations: 165.2 kB / 382.3 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.076e-05/0.211, allocations: 14.53 kB / 382.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003005/0.2113, allocations: 186.4 kB / 382.5 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2114, allocations: 7.719 kB / 382.5 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2114, allocations: 0 / 382.5 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2114, allocations: 7.969 kB / 382.5 MB, free: 39.58 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005625/0.2119, allocations: 0.5823 MB / 383.1 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.212, allocations: 0.7812 kB / 383.1 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.325e-05/0.212, allocations: 31.11 kB / 383.1 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.212, allocations: 1.469 kB / 383.1 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.2121, allocations: 5.312 kB / 383.1 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2121, allocations: 1.438 kB / 383.1 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2121, allocations: 0 / 383.1 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.2123, allocations: 272.5 kB / 383.4 MB, free: 38.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.2123, allocations: 93.42 kB / 383.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.2124, allocations: 6.641 kB / 383.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.52e-05/0.2125, allocations: 6.969 kB / 383.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.693e-05/0.2125, allocations: 21.31 kB / 383.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.2126, allocations: 13.8 kB / 383.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.745e-05/0.2126, allocations: 102.4 kB / 383.6 MB, free: 38.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2126, allocations: 0 / 383.6 MB, free: 38.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002812/0.2129, allocations: 54.5 kB / 383.7 MB, free: 38.62 MB / 298.7 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 (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.0004127/0.2133, allocations: 0.8186 MB / 384.5 MB, free: 37.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002794/0.2136, allocations: 177.8 kB / 384.7 MB, free: 37.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2136, allocations: 0 / 384.7 MB, free: 37.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.2137, allocations: 80.5 kB / 384.7 MB, free: 37.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.214, allocations: 24.64 kB / 384.8 MB, free: 37.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.2152, allocations: 1.009 MB / 385.8 MB, free: 36.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001371/0.2154, allocations: 0.7291 MB / 386.5 MB, free: 36.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.292e-05/0.2155, allocations: 65.38 kB / 386.6 MB, free: 36.2 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2155, allocations: 4 kB / 386.6 MB, free: 36.19 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.559/2.775, allocations: 2.771 MB / 389.3 MB, free: 33.97 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches