Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",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.0009235/0.0009233, allocations: 175.3 kB / 16.72 MB, free: 5.078 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.355/1.355, allocations: 205.4 MB / 222.9 MB, free: 8.926 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.0007265/0.0007265, allocations: 92.67 kB / 271.2 MB, free: 8.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003105, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1952, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001422/0.1967, allocations: 1.378 MB / 376.5 MB, free: 44.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004824/0.1972, allocations: 276.3 kB / 376.8 MB, free: 44.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.52e-05/0.1973, allocations: 3.25 kB / 376.8 MB, free: 44.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.569e-05/0.1974, allocations: 23.2 kB / 376.8 MB, free: 44.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.041e-05/0.1974, allocations: 5.719 kB / 376.9 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.1977, allocations: 95.3 kB / 376.9 MB, free: 44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.198, allocations: 236.7 kB / 377.2 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.1983, allocations: 166.8 kB / 377.3 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.504e-05/0.1983, allocations: 64.58 kB / 377.4 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.964e-05/0.1984, allocations: 80.81 kB / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.1985, allocations: 10.41 kB / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.858e-05/0.1985, allocations: 21.47 kB / 377.5 MB, free: 43.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.372e-05/0.1986, allocations: 37.78 kB / 377.5 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.759e-05/0.1986, allocations: 109.3 kB / 377.7 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.1988, allocations: 154.4 kB / 377.8 MB, free: 43.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1988, allocations: 0 / 377.8 MB, free: 43.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1988, allocations: 5.031 kB / 377.8 MB, free: 43.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1988, allocations: 0 / 377.8 MB, free: 43.41 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.0004457/0.1993, allocations: 449.9 kB / 378.2 MB, free: 42.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.1993, allocations: 9.188 kB / 378.3 MB, free: 42.97 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/0.1994, allocations: 63.31 kB / 378.3 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.427e-05/0.1994, allocations: 21.59 kB / 378.3 MB, free: 42.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.1996, allocations: 231.3 kB / 378.6 MB, free: 42.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.1996, allocations: 28.2 kB / 378.6 MB, free: 42.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.419e-05/0.1997, allocations: 31.56 kB / 378.6 MB, free: 42.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/0.2001, allocations: 268.8 kB / 378.9 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2001, allocations: 7.875 kB / 378.9 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.2001, allocations: 7.156 kB / 378.9 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.036e-06/0.2001, allocations: 6.531 kB / 378.9 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.2004, allocations: 164.4 kB / 379.1 MB, free: 42.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008554/0.2012, allocations: 0.9747 MB / 380 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.2015, allocations: 150.5 kB / 380.2 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.547e-05/0.2016, allocations: 80.66 kB / 380.3 MB, free: 41.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.2016, allocations: 2.938 kB / 380.3 MB, free: 41.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.2018, allocations: 115.1 kB / 380.4 MB, free: 41.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.793e-06/0.2018, allocations: 0 / 380.4 MB, free: 41.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003685/0.2022, allocations: 215 kB / 380.6 MB, free: 41.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.378e-05/0.2022, allocations: 55.47 kB / 380.6 MB, free: 41.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.702e-05/0.2023, allocations: 154.7 kB / 380.8 MB, free: 40.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.2024, allocations: 37.86 kB / 380.8 MB, free: 40.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.2024, allocations: 143.5 kB / 381 MB, free: 40.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.491e-05/0.2025, allocations: 64.06 kB / 381 MB, free: 40.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.084e-05/0.2025, allocations: 9.062 kB / 381 MB, free: 40.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.401e-05/0.2025, allocations: 331.3 kB / 381.4 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.2026, allocations: 61.56 kB / 381.4 MB, free: 40.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.2028, allocations: 141.1 kB / 381.6 MB, free: 40.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.203, allocations: 191.1 kB / 381.8 MB, free: 40.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.203, allocations: 3.938 kB / 381.8 MB, free: 40.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003116/0.2033, allocations: 244.7 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2033, allocations: 9.844 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2033, allocations: 3.031 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2034, allocations: 3.531 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.2035, allocations: 34.39 kB / 382 MB, free: 39.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.2035, allocations: 8.859 kB / 382.1 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.2036, allocations: 28.09 kB / 382.1 MB, free: 39.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.2037, allocations: 18.5 kB / 382.1 MB, free: 39.86 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.0001031/0.2038, allocations: 162.7 kB / 382.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.2038, allocations: 10.47 kB / 382.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.2041, allocations: 188.4 kB / 382.5 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2041, allocations: 2.156 kB / 382.5 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2041, allocations: 1.156 kB / 382.5 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.2041, allocations: 3.984 kB / 382.5 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006022/0.2047, allocations: 0.5982 MB / 383.1 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.2047, allocations: 7.875 kB / 383.1 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.087e-05/0.2048, allocations: 19.16 kB / 383.1 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2048, allocations: 1.406 kB / 383.1 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.2048, allocations: 1.5 kB / 383.1 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.2048, allocations: 5.328 kB / 383.1 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.2049, allocations: 1.5 kB / 383.1 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.2051, allocations: 264.4 kB / 383.4 MB, free: 38.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.837e-05/0.2051, allocations: 109.2 kB / 383.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.2052, allocations: 1.156 kB / 383.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.022e-05/0.2052, allocations: 8.406 kB / 383.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.424e-05/0.2053, allocations: 26.34 kB / 383.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.2053, allocations: 8.578 kB / 383.5 MB, free: 38.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.835e-05/0.2054, allocations: 98.89 kB / 383.6 MB, free: 38.63 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2054, allocations: 1.219 kB / 383.6 MB, free: 38.63 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002872/0.2057, allocations: 54.06 kB / 383.7 MB, free: 38.61 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,step.localActive,transition1.enableFire,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.0004202/0.2061, allocations: 0.8156 MB / 384.5 MB, free: 37.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002802/0.2064, allocations: 186.1 kB / 384.7 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2064, allocations: 0 / 384.7 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.2065, allocations: 75.81 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.0002637/0.2068, allocations: 29.3 kB / 384.8 MB, free: 37.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.208, allocations: 1.016 MB / 385.8 MB, free: 36.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001572/0.2082, allocations: 0.7339 MB / 386.5 MB, free: 36.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.2083, allocations: 64.81 kB / 386.6 MB, free: 36.18 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2083, allocations: 0 / 386.6 MB, free: 36.18 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.565/2.773, allocations: 2.794 MB / 389.4 MB, free: 33.93 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches