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.001338/0.001338, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2842, allocations: 50.55 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002688/0.2869, allocations: 1.489 MB / 410.2 MB, free: 28 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006972/0.2876, allocations: 275.2 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.072e-05/0.2877, allocations: 4 kB / 410.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.2879, allocations: 23.73 kB / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.819e-05/0.288, allocations: 15.81 kB / 410.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003854/0.2883, allocations: 119.7 kB / 410.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.2887, allocations: 251.6 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002887/0.289, allocations: 185.7 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.533e-05/0.2891, allocations: 75.78 kB / 411.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.2893, allocations: 103.5 kB / 411.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.454e-05/0.2893, allocations: 24 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.552e-05/0.2894, allocations: 24 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.27e-05/0.2894, allocations: 51.84 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.2895, allocations: 95.52 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003071/0.2899, allocations: 254 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2899, allocations: 0 / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.2899, allocations: 0 / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2899, allocations: 0 / 411.7 MB, free: 14.55 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.000732/0.2906, allocations: 490.2 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.2907, allocations: 8.031 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.768e-05/0.2908, allocations: 54.73 kB / 412.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002074/0.291, allocations: 28.83 kB / 412.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.2913, allocations: 236 kB / 412.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.2913, allocations: 20.94 kB / 412.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.2914, allocations: 24.38 kB / 412.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.2918, allocations: 240 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.2918, allocations: 3.938 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.2919, allocations: 12 kB / 412.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.2919, allocations: 4 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002864/0.2922, allocations: 153.7 kB / 412.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.2932, allocations: 0.6936 MB / 413.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.2935, allocations: 170.8 kB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.2936, allocations: 80.83 kB / 413.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.2937, allocations: 7.938 kB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.2939, allocations: 119.3 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.2939, allocations: 0 / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004393/0.2943, allocations: 218.8 kB / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.2944, allocations: 59.39 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.2946, allocations: 145.5 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.2946, allocations: 37.69 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.2947, allocations: 136.9 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.2948, allocations: 59.48 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.2949, allocations: 74.02 kB / 414.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.295, allocations: 322.8 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.2952, allocations: 60.62 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.2953, allocations: 128.1 kB / 415.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.2956, allocations: 178.6 kB / 415.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.2956, allocations: 7.938 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003603/0.296, allocations: 237.3 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.296, allocations: 4 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.296, allocations: 4 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.296, allocations: 7.938 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.2962, allocations: 23.92 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.2962, allocations: 8.156 kB / 415.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.2963, allocations: 43.7 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.2963, allocations: 12 kB / 415.7 MB, free: 10.21 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.0001591/0.2965, allocations: 153.7 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.2965, allocations: 11.94 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.795e-05/0.2966, allocations: 16.84 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.2966, allocations: 0 / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.2966, allocations: 4 kB / 415.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2966, allocations: 0 / 415.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007199/0.2973, allocations: 0.556 MB / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2973, allocations: 4 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.34e-05/0.2974, allocations: 15.98 kB / 416.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2974, allocations: 7.938 kB / 416.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.2975, allocations: 4 kB / 416.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2975, allocations: 0 / 416.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2975, allocations: 4 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003085/0.2978, allocations: 275.8 kB / 416.8 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.967e-05/0.2979, allocations: 89 kB / 416.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.2979, allocations: 4 kB / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.509e-05/0.298, allocations: 8 kB / 416.9 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.305e-05/0.2981, allocations: 23.91 kB / 416.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.2981, allocations: 4 kB / 416.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.4e-05/0.2981, allocations: 103.3 kB / 417 MB, free: 8.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2981, allocations: 0 / 417 MB, free: 8.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002802/0.2984, allocations: 51.84 kB / 417 MB, free: 8.797 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.0006641/0.2991, allocations: 0.7994 MB / 417.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003197/0.2994, allocations: 172.1 kB / 418 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.2994, allocations: 4.438 kB / 418 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.2996, allocations: 91.77 kB / 418.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.2999, allocations: 27.92 kB / 418.1 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.3021, allocations: 1.987 MB / 420.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.3025, allocations: 0.7284 MB / 420.8 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.401e-05/0.3026, allocations: 25.88 kB / 420.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.3027, allocations: 59.36 kB / 420.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3027, allocations: 0 / 420.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02571/0.3284, allocations: 3.399 MB / 424.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/8.58, allocations: 3.938 kB / 424.3 MB, free: 1.398 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.1.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