Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002259/0.002259, allocations: 196 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.462/1.462, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008382/0.0008383, allocations: 99.95 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000243/0.0002434, allocations: 11.94 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2119, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001323/0.2132, allocations: 1.215 MB / 409.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005382/0.2138, allocations: 287.2 kB / 409.6 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.406e-05/0.2139, allocations: 4 kB / 409.6 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.214, allocations: 15.81 kB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.655e-05/0.2141, allocations: 23.84 kB / 409.7 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003558/0.2145, allocations: 85.88 kB / 409.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002978/0.2148, allocations: 223.6 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002757/0.215, allocations: 141.8 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.172e-05/0.2151, allocations: 67.72 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.2153, allocations: 71.67 kB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.2153, allocations: 8 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.56e-05/0.2154, allocations: 19.98 kB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.569e-05/0.2155, allocations: 44.61 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.521e-05/0.2155, allocations: 97.3 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.2158, allocations: 156.6 kB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.2158, allocations: 4 kB / 410.6 MB, free: 25.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2158, allocations: 2.625 kB / 410.6 MB, free: 25.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.2158, allocations: 0 / 410.6 MB, free: 25.22 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.0006885/0.2165, allocations: 443.9 kB / 411 MB, free: 24.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.2166, allocations: 8.031 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.996e-05/0.2166, allocations: 56.48 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.985e-05/0.2167, allocations: 24.66 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.2169, allocations: 228.1 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.217, allocations: 16.94 kB / 411.3 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.217, allocations: 31.69 kB / 411.3 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004266/0.2175, allocations: 240 kB / 411.6 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.2175, allocations: 3.938 kB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.2175, allocations: 8 kB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.2175, allocations: 8 kB / 411.6 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.2178, allocations: 157.6 kB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009073/0.2187, allocations: 0.705 MB / 412.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.219, allocations: 177.6 kB / 412.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.2191, allocations: 76.83 kB / 412.7 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2192, allocations: 7.875 kB / 412.7 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.2194, allocations: 121 kB / 412.8 MB, free: 22.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.943e-06/0.2194, allocations: 0 / 412.8 MB, free: 22.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003564/0.2197, allocations: 225.1 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.2198, allocations: 59.39 kB / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.448e-05/0.2199, allocations: 141.9 kB / 413.3 MB, free: 22.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.2199, allocations: 37.7 kB / 413.3 MB, free: 22.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.106e-05/0.22, allocations: 132.6 kB / 413.4 MB, free: 22.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.549e-05/0.22, allocations: 59.2 kB / 413.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.177e-05/0.22, allocations: 8 kB / 413.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.046e-05/0.2201, allocations: 326.8 kB / 413.8 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.2202, allocations: 64.62 kB / 413.9 MB, free: 21.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.2203, allocations: 120.1 kB / 414 MB, free: 21.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.2205, allocations: 171.3 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2205, allocations: 0 / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003016/0.2208, allocations: 249.3 kB / 414.4 MB, free: 21.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.2209, allocations: 8.031 kB / 414.4 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2209, allocations: 4 kB / 414.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.2209, allocations: 4 kB / 414.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.221, allocations: 31.92 kB / 414.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.221, allocations: 0 / 414.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.282e-05/0.2211, allocations: 31.73 kB / 414.5 MB, free: 21.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.525e-05/0.2212, allocations: 12 kB / 414.5 MB, free: 21.02 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.0001104/0.2213, allocations: 165.6 kB / 414.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.097e-05/0.2213, allocations: 15.88 kB / 414.7 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.2216, allocations: 194.3 kB / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2216, allocations: 0 / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2216, allocations: 0 / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.2216, allocations: 0 / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.2222, allocations: 0.5722 MB / 415.4 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2222, allocations: 4 kB / 415.4 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.252e-05/0.2223, allocations: 23.92 kB / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2223, allocations: 4 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.2223, allocations: 4 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.2223, allocations: 4 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2223, allocations: 3.938 kB / 415.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.2226, allocations: 275.6 kB / 415.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.41e-05/0.2226, allocations: 96.86 kB / 415.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.2227, allocations: 7.984 kB / 415.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.544e-05/0.2227, allocations: 12 kB / 415.8 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.332e-05/0.2228, allocations: 27.89 kB / 415.9 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.2228, allocations: 4 kB / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.603e-05/0.2229, allocations: 99.2 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2229, allocations: 0 / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002704/0.2232, allocations: 47.84 kB / 416 MB, free: 19.36 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.0004338/0.2236, allocations: 0.814 MB / 416.8 MB, free: 18.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002605/0.2239, allocations: 179.8 kB / 417 MB, free: 18.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2239, allocations: 0 / 417 MB, free: 18.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.224, allocations: 80.34 kB / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.2243, allocations: 27.92 kB / 417.1 MB, free: 18.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.2254, allocations: 0.9664 MB / 418.1 MB, free: 17.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.2256, allocations: 0.7287 MB / 418.8 MB, free: 16.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.449e-05/0.2257, allocations: 67.47 kB / 418.9 MB, free: 16.37 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2257, allocations: 192 / 418.9 MB, free: 16.37 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.603/2.828, allocations: 2.7 MB / 421.6 MB, free: 13.67 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches