Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001462/0.001462, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.001839, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2412, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002728/0.244, allocations: 1.682 MB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006798/0.2447, allocations: 295.1 kB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.771e-05/0.2448, allocations: 7.938 kB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.2449, allocations: 23.73 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.536e-05/0.245, allocations: 23.73 kB / 410.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.2453, allocations: 115.8 kB / 410.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002936/0.2456, allocations: 271.5 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.2459, allocations: 194.9 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.598e-05/0.2461, allocations: 91.7 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.2462, allocations: 99.53 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.2462, allocations: 24 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.156e-05/0.2463, allocations: 28 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.299e-05/0.2464, allocations: 63.77 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.2465, allocations: 99.5 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.2468, allocations: 257.9 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2468, allocations: 4 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2468, allocations: 4 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2468, allocations: 0 / 412 MB, free: 14.3 MB / 334.1 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.0006522/0.2475, allocations: 498.3 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2475, allocations: 8.031 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.056e-05/0.2476, allocations: 58.72 kB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000199/0.2478, allocations: 32.78 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.2481, allocations: 232 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.09e-05/0.2482, allocations: 28.92 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.252e-05/0.2482, allocations: 32.38 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004686/0.2487, allocations: 266.6 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.2487, allocations: 7.875 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.2487, allocations: 12 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.2488, allocations: 8 kB / 413.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.2491, allocations: 165.6 kB / 413.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.2502, allocations: 0.9596 MB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.2505, allocations: 180.7 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.2507, allocations: 85.69 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.2507, allocations: 0 / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.2509, allocations: 140.1 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.2509, allocations: 3.938 kB / 414.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000453/0.2514, allocations: 213.4 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.443e-05/0.2515, allocations: 89.03 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.2516, allocations: 161.6 kB / 415.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.2516, allocations: 37.7 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.515e-05/0.2517, allocations: 140.8 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.993e-05/0.2518, allocations: 55.53 kB / 415.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.776e-05/0.2519, allocations: 85.77 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.252, allocations: 330.8 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.2522, allocations: 67.75 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.2523, allocations: 136.5 kB / 415.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.2526, allocations: 192.3 kB / 416.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2526, allocations: 0 / 416.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003601/0.253, allocations: 257.3 kB / 416.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.253, allocations: 6.188 kB / 416.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.253, allocations: 4 kB / 416.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.253, allocations: 8.281 kB / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.2532, allocations: 27.92 kB / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.2532, allocations: 4 kB / 416.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.949e-05/0.2533, allocations: 35.77 kB / 416.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.2533, allocations: 12 kB / 416.5 MB, free: 9.441 MB / 334.1 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001406/0.2535, allocations: 165.6 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.2535, allocations: 19.89 kB / 416.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.382e-05/0.2536, allocations: 20.78 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.2536, allocations: 8 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.2536, allocations: 0 / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2536, allocations: 4 kB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006519/0.2543, allocations: 0.5782 MB / 417.3 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2543, allocations: 7.984 kB / 417.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.936e-05/0.2543, allocations: 8 kB / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.2544, allocations: 7.938 kB / 417.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.2544, allocations: 7.938 kB / 417.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2544, allocations: 4 kB / 417.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.2544, allocations: 4 kB / 417.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002935/0.2547, allocations: 272.1 kB / 417.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.2548, allocations: 92.95 kB / 417.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.2548, allocations: 15.92 kB / 417.7 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.493e-05/0.2549, allocations: 4 kB / 417.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.255, allocations: 19.97 kB / 417.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.255, allocations: 16 kB / 417.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.784e-05/0.2551, allocations: 97.8 kB / 417.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2551, allocations: 0 / 417.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.2554, allocations: 51.89 kB / 417.9 MB, free: 7.945 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006254/0.256, allocations: 0.8118 MB / 418.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000319/0.2563, allocations: 184 kB / 418.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2563, allocations: 0 / 418.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.2565, allocations: 83.83 kB / 418.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.2568, allocations: 23.98 kB / 419 MB, free: 6.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.2589, allocations: 2.071 MB / 421 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.2592, allocations: 0.7326 MB / 421.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.994e-05/0.2593, allocations: 25.94 kB / 421.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.822e-05/0.2594, allocations: 59.36 kB / 421.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.2594, allocations: 0 / 421.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.2807, allocations: 3.514 MB / 425.4 MB, free: 340 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.776/8.056, allocations: 10.58 kB / 425.4 MB, free: 332 kB / 334.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0022 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches