Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002174/0.002174, allocations: 114.4 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002051/0.002052, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 52.31 kB / 328 MB, free: 3.848 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1029, allocations: 46.62 MB / 374.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003137/0.1061, allocations: 1.473 MB / 376.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000879/0.1071, allocations: 251.3 kB / 376.3 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.1073, allocations: 7.938 kB / 376.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.1075, allocations: 15.75 kB / 376.4 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.1076, allocations: 23.8 kB / 376.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.1082, allocations: 107.8 kB / 376.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004031/0.1086, allocations: 259.6 kB / 376.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003359/0.109, allocations: 162.4 kB / 376.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.1091, allocations: 87.7 kB / 377 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.1093, allocations: 95.59 kB / 377.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.445e-05/0.1093, allocations: 20 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.897e-05/0.1094, allocations: 39.92 kB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.631e-05/0.1095, allocations: 51.84 kB / 377.2 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.1096, allocations: 99.52 kB / 377.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.11, allocations: 239.1 kB / 377.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.11, allocations: 0 / 377.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.11, allocations: 4 kB / 377.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.11, allocations: 7.922 kB / 377.5 MB, free: 2.188 MB / 318.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.0008018/0.1108, allocations: 490.2 kB / 378 MB, free: 1.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.1109, allocations: 8.031 kB / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.193e-05/0.111, allocations: 62.73 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.347e-05/0.1111, allocations: 24.8 kB / 378.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.1114, allocations: 224.1 kB / 378.3 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/0.1114, allocations: 28.88 kB / 378.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.1115, allocations: 24.38 kB / 378.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004503/0.1119, allocations: 236 kB / 378.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.112, allocations: 7.922 kB / 378.6 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.112, allocations: 12 kB / 378.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.112, allocations: 8 kB / 378.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003007/0.1123, allocations: 165.6 kB / 378.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.1134, allocations: 0.6897 MB / 379.5 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1933/0.3067, allocations: 166.5 kB / 379.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.3069, allocations: 80.55 kB / 379.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.3069, allocations: 8.453 kB / 379.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.3072, allocations: 124 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.296e-06/0.3072, allocations: 1.203 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004561/0.3077, allocations: 220.4 kB / 380.1 MB, free: 12.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.3077, allocations: 56.72 kB / 380.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.3079, allocations: 152.9 kB / 380.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.3079, allocations: 38.27 kB / 380.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.339e-05/0.308, allocations: 131.6 kB / 380.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.523e-05/0.308, allocations: 61.73 kB / 380.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.701e-05/0.3081, allocations: 77.88 kB / 380.6 MB, free: 12.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.769e-05/0.3082, allocations: 326.9 kB / 380.9 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.3083, allocations: 62.34 kB / 381 MB, free: 12.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.3085, allocations: 125.7 kB / 381.1 MB, free: 12.1 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.3087, allocations: 179.6 kB / 381.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3087, allocations: 3.75 kB / 381.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003574/0.3091, allocations: 242 kB / 381.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.3091, allocations: 5.5 kB / 381.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3091, allocations: 3.547 kB / 381.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.3091, allocations: 2.75 kB / 381.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.3093, allocations: 32.77 kB / 381.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3093, allocations: 10.61 kB / 381.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.3094, allocations: 28.31 kB / 381.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.3094, allocations: 12.58 kB / 381.6 MB, free: 11.98 MB / 318.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.000121/0.3096, allocations: 157.9 kB / 381.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.344e-05/0.3096, allocations: 14.25 kB / 381.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003536/0.31, allocations: 195.9 kB / 381.9 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.31, allocations: 8.984 kB / 382 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.31, allocations: 3.75 kB / 382 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.31, allocations: 1.766 kB / 382 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007765/0.3108, allocations: 0.566 MB / 382.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3108, allocations: 3.047 kB / 382.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.773e-05/0.3109, allocations: 24.56 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3109, allocations: 1.031 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.3109, allocations: 7.641 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3109, allocations: 2.484 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3109, allocations: 0 / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003479/0.3113, allocations: 278.4 kB / 382.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.665e-05/0.3113, allocations: 89.39 kB / 382.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.3114, allocations: 17.84 kB / 382.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-05/0.3115, allocations: 4.406 kB / 382.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.634e-05/0.3115, allocations: 22.2 kB / 383 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.3116, allocations: 11.09 kB / 383 MB, free: 11.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.206e-05/0.3116, allocations: 93.36 kB / 383.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3116, allocations: 1.312 kB / 383.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003013/0.3119, allocations: 49.55 kB / 383.1 MB, free: 11.08 MB / 318.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0005174/0.3124, allocations: 0.8358 MB / 384 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003248/0.3128, allocations: 182.1 kB / 384.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3128, allocations: 0 / 384.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.3129, allocations: 90 kB / 384.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.3132, allocations: 24.41 kB / 384.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.3151, allocations: 2.006 MB / 386.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000165/0.3153, allocations: 0.7327 MB / 387 MB, free: 7.957 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.476e-05/0.3154, allocations: 22.7 kB / 387 MB, free: 7.957 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.58e-05/0.3155, allocations: 63.41 kB / 387.1 MB, free: 7.914 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3155, allocations: 0 / 387.1 MB, free: 7.914 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02447/0.3399, allocations: 3.668 MB / 390.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.271/8.611, allocations: 9.172 kB / 390.7 MB, free: 7.223 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches