Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample",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.0009503/0.0009503, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.352/1.352, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007052/0.0007052, allocations: 78.44 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000307/0.0003071, allocations: 8 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2043, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001292/0.2056, allocations: 1.192 MB / 376.4 MB, free: 44.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004706/0.2061, allocations: 266.5 kB / 376.6 MB, free: 44.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.071e-05/0.2062, allocations: 3.719 kB / 376.6 MB, free: 44.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.22e-05/0.2063, allocations: 23.45 kB / 376.7 MB, free: 44.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.09e-05/0.2064, allocations: 5.594 kB / 376.7 MB, free: 44.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.2067, allocations: 85.23 kB / 376.7 MB, free: 44.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002371/0.2069, allocations: 229.2 kB / 377 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.2071, allocations: 138.9 kB / 377.1 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.31e-05/0.2072, allocations: 67.64 kB / 377.2 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.2073, allocations: 76.64 kB / 377.2 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.959e-05/0.2074, allocations: 10.81 kB / 377.3 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.5e-05/0.2074, allocations: 21.34 kB / 377.3 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.315e-05/0.2075, allocations: 44.23 kB / 377.3 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.559e-05/0.2076, allocations: 100.5 kB / 377.4 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.2077, allocations: 151.2 kB / 377.6 MB, free: 43.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2077, allocations: 5.094 kB / 377.6 MB, free: 43.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2077, allocations: 0 / 377.6 MB, free: 43.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.2078, allocations: 0 / 377.6 MB, free: 43.6 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004639/0.2082, allocations: 439.7 kB / 378 MB, free: 43.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.2083, allocations: 13.56 kB / 378 MB, free: 43.16 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.227e-05/0.2083, allocations: 62.97 kB / 378.1 MB, free: 43.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.541e-05/0.2084, allocations: 23.94 kB / 378.1 MB, free: 43.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.2086, allocations: 222.1 kB / 378.3 MB, free: 42.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.2086, allocations: 20.09 kB / 378.3 MB, free: 42.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.519e-05/0.2086, allocations: 29.3 kB / 378.4 MB, free: 42.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003614/0.209, allocations: 237.7 kB / 378.6 MB, free: 42.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.209, allocations: 7.938 kB / 378.6 MB, free: 42.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.209, allocations: 14.08 kB / 378.6 MB, free: 42.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.515e-06/0.2091, allocations: 9.062 kB / 378.6 MB, free: 42.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002895/0.2094, allocations: 157.5 kB / 378.8 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007711/0.2101, allocations: 0.7131 MB / 379.5 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.2104, allocations: 163.2 kB / 379.6 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.2105, allocations: 79.92 kB / 379.7 MB, free: 41.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.2106, allocations: 10.05 kB / 379.7 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000197/0.2108, allocations: 121 kB / 379.9 MB, free: 41.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.033e-06/0.2108, allocations: 0 / 379.9 MB, free: 41.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003702/0.2111, allocations: 215.2 kB / 380.1 MB, free: 41.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/0.2112, allocations: 54.19 kB / 380.1 MB, free: 41.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.105e-05/0.2113, allocations: 152.9 kB / 380.3 MB, free: 41.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.2113, allocations: 34.17 kB / 380.3 MB, free: 41.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.117e-05/0.2114, allocations: 133 kB / 380.4 MB, free: 41.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.481e-05/0.2114, allocations: 56.55 kB / 380.5 MB, free: 41.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.2114, allocations: 13.12 kB / 380.5 MB, free: 41.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.61e-05/0.2115, allocations: 326.2 kB / 380.8 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.2116, allocations: 60.91 kB / 380.9 MB, free: 40.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.2117, allocations: 131.2 kB / 381 MB, free: 40.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.2119, allocations: 176.4 kB / 381.2 MB, free: 40.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2119, allocations: 0.9688 kB / 381.2 MB, free: 40.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003127/0.2122, allocations: 245 kB / 381.4 MB, free: 40.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.2122, allocations: 5.281 kB / 381.4 MB, free: 40.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2123, allocations: 2.656 kB / 381.4 MB, free: 40.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.2123, allocations: 2.688 kB / 381.4 MB, free: 40.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.2124, allocations: 28.3 kB / 381.5 MB, free: 40.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.2124, allocations: 7.203 kB / 381.5 MB, free: 40.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.678e-05/0.2125, allocations: 30.19 kB / 381.5 MB, free: 40.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.2126, allocations: 17.03 kB / 381.5 MB, free: 40.4 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001059/0.2127, allocations: 166.4 kB / 381.7 MB, free: 40.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.2127, allocations: 13.56 kB / 381.7 MB, free: 40.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002955/0.213, allocations: 194.7 kB / 381.9 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.213, allocations: 3.469 kB / 381.9 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.213, allocations: 0 / 381.9 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.213, allocations: 3.984 kB / 381.9 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006601/0.2137, allocations: 0.5723 MB / 382.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2137, allocations: 0 / 382.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.883e-05/0.2138, allocations: 12.16 kB / 382.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.2138, allocations: 2 kB / 382.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.2139, allocations: 9.141 kB / 382.5 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.2139, allocations: 9 kB / 382.5 MB, free: 39.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2139, allocations: 5 kB / 382.5 MB, free: 39.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.2142, allocations: 278.8 kB / 382.8 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.594e-05/0.2142, allocations: 85.23 kB / 382.8 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.2142, allocations: 2.125 kB / 382.8 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.2143, allocations: 9.375 kB / 382.9 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.82e-05/0.2144, allocations: 30.58 kB / 382.9 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.2145, allocations: 5.5 kB / 382.9 MB, free: 39.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.978e-05/0.2145, allocations: 100.7 kB / 383 MB, free: 39.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2145, allocations: 0 / 383 MB, free: 39.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003334/0.2148, allocations: 54.16 kB / 383 MB, free: 39.19 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0005021/0.2154, allocations: 0.8176 MB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003376/0.2157, allocations: 178.1 kB / 384 MB, free: 38.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2157, allocations: 0 / 384 MB, free: 38.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.2159, allocations: 85.47 kB / 384.1 MB, free: 38.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.2162, allocations: 23.33 kB / 384.1 MB, free: 38.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.2176, allocations: 0.9887 MB / 385.1 MB, free: 37.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.2177, allocations: 0.735 MB / 385.9 MB, free: 36.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.261e-05/0.2178, allocations: 57.52 kB / 385.9 MB, free: 36.79 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2179, allocations: 0 / 385.9 MB, free: 36.79 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.559/2.777, allocations: 2.69 MB / 388.6 MB, free: 34.73 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches