Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001417/0.001417, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 226.5 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007431/0.0007432, allocations: 100 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002413/0.0002414, allocations: 4 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2176, allocations: 51.3 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001498/0.2192, allocations: 1.39 MB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005935/0.2198, allocations: 300.8 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.2199, allocations: 4 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.2201, allocations: 19.8 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.93e-05/0.2201, allocations: 15.02 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.2205, allocations: 95.89 kB / 409.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002096/0.2207, allocations: 239.5 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.2209, allocations: 158.8 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.193e-05/0.221, allocations: 67.77 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.963e-05/0.2211, allocations: 80.92 kB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.2211, allocations: 11.94 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.934e-05/0.2212, allocations: 19.98 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.772e-05/0.2213, allocations: 40.62 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.11e-05/0.2213, allocations: 109.2 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.2215, allocations: 164.6 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2215, allocations: 0 / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2215, allocations: 0 / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.2215, allocations: 0.75 kB / 410.8 MB, free: 24.96 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.0005012/0.222, allocations: 457.7 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.2221, allocations: 12.03 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.116e-05/0.2221, allocations: 62.72 kB / 411.3 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.375e-05/0.2222, allocations: 20.75 kB / 411.3 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001818/0.2224, allocations: 235.2 kB / 411.6 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.2224, allocations: 24.94 kB / 411.6 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.2225, allocations: 28.38 kB / 411.6 MB, free: 24.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000356/0.2228, allocations: 274.3 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.2228, allocations: 12 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.2229, allocations: 4 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.2229, allocations: 8 kB / 411.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.2231, allocations: 157.6 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008575/0.224, allocations: 0.9827 MB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002199/0.2242, allocations: 177.4 kB / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.152e-05/0.2243, allocations: 77.7 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.2244, allocations: 3.984 kB / 413.3 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000196/0.2246, allocations: 142.6 kB / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.224e-06/0.2246, allocations: 0 / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003758/0.2249, allocations: 229 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/0.225, allocations: 85.05 kB / 413.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.12e-05/0.2251, allocations: 149.6 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.2251, allocations: 33.7 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.213e-05/0.2252, allocations: 148.5 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.2252, allocations: 63.33 kB / 414.1 MB, free: 21.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.2252, allocations: 8 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.8e-05/0.2253, allocations: 330.8 kB / 414.5 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.959e-05/0.2254, allocations: 63.91 kB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.2255, allocations: 144.3 kB / 414.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.2257, allocations: 185 kB / 414.9 MB, free: 20.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2257, allocations: 4 kB / 414.9 MB, free: 20.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002908/0.226, allocations: 253.2 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.2261, allocations: 11.98 kB / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2261, allocations: 288 / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.2261, allocations: 8 kB / 415.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.2262, allocations: 31.92 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.2262, allocations: 4 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.406e-05/0.2263, allocations: 27.75 kB / 415.2 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.2264, allocations: 15.98 kB / 415.2 MB, free: 20.23 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.0001138/0.2265, allocations: 174.2 kB / 415.4 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.2265, allocations: 7.906 kB / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003006/0.2268, allocations: 194.4 kB / 415.6 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2268, allocations: 4 kB / 415.6 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2269, allocations: 0 / 415.6 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2269, allocations: 3.938 kB / 415.6 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005657/0.2274, allocations: 0.5947 MB / 416.2 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2275, allocations: 0 / 416.2 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.86e-05/0.2275, allocations: 27.86 kB / 416.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2275, allocations: 0 / 416.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.2276, allocations: 8 kB / 416.2 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.2276, allocations: 4 kB / 416.2 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2276, allocations: 0 / 416.2 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.2278, allocations: 292.4 kB / 416.5 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.507e-05/0.2278, allocations: 100.8 kB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.2279, allocations: 4 kB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.33e-05/0.228, allocations: 12 kB / 416.6 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-05/0.228, allocations: 23.95 kB / 416.6 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.228, allocations: 8 kB / 416.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.633e-05/0.2281, allocations: 97.09 kB / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2281, allocations: 0 / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002776/0.2284, allocations: 51.84 kB / 416.8 MB, free: 18.52 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,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: 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.0004276/0.2288, allocations: 0.8263 MB / 417.6 MB, free: 17.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002532/0.2291, allocations: 183.7 kB / 417.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2291, allocations: 0.5625 kB / 417.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.2292, allocations: 83.84 kB / 417.9 MB, free: 17.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.2295, allocations: 39.08 kB / 417.9 MB, free: 17.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.2306, allocations: 1.017 MB / 418.9 MB, free: 16.26 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.2308, allocations: 0.7365 MB / 419.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.185e-05/0.2309, allocations: 63.48 kB / 419.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2309, allocations: 0 / 419.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.729/2.96, allocations: 2.815 MB / 422.5 MB, free: 12.62 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches