Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001609/0.00161, allocations: 118.2 kB / 17.79 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.002432/0.002432, allocations: 202 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.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2648, allocations: 50.55 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002783/0.2676, allocations: 1.489 MB / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005912/0.2682, allocations: 275.2 kB / 410.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.155e-05/0.2683, allocations: 4 kB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.2684, allocations: 27.67 kB / 410.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.803e-05/0.2685, allocations: 15.81 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004227/0.2689, allocations: 115.8 kB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003179/0.2693, allocations: 259.5 kB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003136/0.2696, allocations: 173.8 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.522e-05/0.2697, allocations: 79.78 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.2698, allocations: 103.5 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.286e-05/0.2699, allocations: 20 kB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.275e-05/0.27, allocations: 31.94 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.785e-05/0.27, allocations: 51.91 kB / 411.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.2702, allocations: 95.52 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.2705, allocations: 246 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2705, allocations: 0 / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2705, allocations: 3.938 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.298e-06/0.2705, allocations: 0 / 411.7 MB, free: 14.61 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006207/0.2711, allocations: 486.3 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2712, allocations: 12.03 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.012e-05/0.2712, allocations: 58.73 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002072/0.2715, allocations: 24.83 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002918/0.2718, allocations: 236 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.2718, allocations: 24.88 kB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.2718, allocations: 24.38 kB / 412.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003881/0.2722, allocations: 240 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.2723, allocations: 3.938 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.2723, allocations: 12 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.2723, allocations: 8 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.2726, allocations: 153.6 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009372/0.2735, allocations: 0.6897 MB / 413.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.2738, allocations: 174.2 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.274, allocations: 88.81 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.274, allocations: 7.938 kB / 413.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001807/0.2742, allocations: 118.4 kB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.2742, allocations: 0 / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000386/0.2746, allocations: 213.3 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.2746, allocations: 59.39 kB / 414.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.2748, allocations: 150 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.2748, allocations: 33.7 kB / 414.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.362e-05/0.2749, allocations: 132.9 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.645e-05/0.2749, allocations: 59.48 kB / 414.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.848e-05/0.275, allocations: 78.02 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2752, allocations: 322.8 kB / 415 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.2753, allocations: 60.62 kB / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.2755, allocations: 132.1 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.2757, allocations: 178.6 kB / 415.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2757, allocations: 0 / 415.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003306/0.276, allocations: 241.3 kB / 415.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.2761, allocations: 8 kB / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.2761, allocations: 224 / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.2761, allocations: 8 kB / 415.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.2763, allocations: 31.86 kB / 415.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.2763, allocations: 7.984 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.721e-05/0.2764, allocations: 35.77 kB / 415.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.2764, allocations: 8 kB / 415.7 MB, free: 10.26 MB / 334.1 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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.2765, allocations: 153.7 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.2766, allocations: 11.95 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.555e-05/0.2766, allocations: 28.77 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.2766, allocations: 4 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2766, allocations: 0 / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2766, allocations: 0 / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006303/0.2773, allocations: 0.5521 MB / 416.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2773, allocations: 0 / 416.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.405e-05/0.2774, allocations: 19.92 kB / 416.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2774, allocations: 0 / 416.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.2774, allocations: 8 kB / 416.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.2774, allocations: 0 / 416.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2774, allocations: 4 kB / 416.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002959/0.2777, allocations: 271.8 kB / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.2778, allocations: 92.98 kB / 416.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.2778, allocations: 0 / 416.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.752e-05/0.2779, allocations: 11.98 kB / 416.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.278, allocations: 27.91 kB / 416.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.278, allocations: 8 kB / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.012e-05/0.2781, allocations: 103.3 kB / 417 MB, free: 8.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2781, allocations: 0 / 417 MB, free: 8.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002737/0.2784, allocations: 51.84 kB / 417.1 MB, free: 8.832 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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 (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0005395/0.2789, allocations: 0.7955 MB / 417.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002786/0.2792, allocations: 180.1 kB / 418 MB, free: 7.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2792, allocations: 0 / 418 MB, free: 7.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.2793, allocations: 87.83 kB / 418.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.2796, allocations: 19.94 kB / 418.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.2814, allocations: 1.991 MB / 420.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.2817, allocations: 0.7284 MB / 420.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.447e-05/0.2818, allocations: 21.94 kB / 420.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.217e-05/0.2819, allocations: 55.61 kB / 420.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2819, allocations: 3.938 kB / 420.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.3005, allocations: 3.4 MB / 424.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.645/7.946, allocations: 10.52 kB / 424.4 MB, free: 1.438 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_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.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches