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.001445/0.001445, allocations: 106.6 kB / 17.73 MB, free: 5.367 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.00185/0.00185, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.469/1.469, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001344/0.001344, allocations: 59.92 kB / 328 MB, free: 3.855 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.1001, allocations: 46.62 MB / 374.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002741/0.1029, allocations: 1.473 MB / 376.1 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006733/0.1035, allocations: 247.3 kB / 376.3 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1037, allocations: 4 kB / 376.3 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.1039, allocations: 27.67 kB / 376.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.278e-05/0.1039, allocations: 19.8 kB / 376.4 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.1044, allocations: 107.8 kB / 376.5 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003351/0.1047, allocations: 259.5 kB / 376.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003159/0.1051, allocations: 166.4 kB / 376.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.1052, allocations: 87.7 kB / 377 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.1054, allocations: 95.59 kB / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.926e-05/0.1054, allocations: 24 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.052e-05/0.1055, allocations: 28 kB / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.472e-05/0.1056, allocations: 59.81 kB / 377.2 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.1057, allocations: 95.47 kB / 377.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002896/0.106, allocations: 239.5 kB / 377.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.106, allocations: 0 / 377.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.106, allocations: 4 kB / 377.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.106, allocations: 0 / 377.5 MB, free: 2.203 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.0006205/0.1066, allocations: 482.5 kB / 378 MB, free: 1.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1067, allocations: 12.03 kB / 378 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.936e-05/0.1067, allocations: 58.72 kB / 378.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/0.1068, allocations: 24.66 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.1071, allocations: 232 kB / 378.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.1071, allocations: 24.94 kB / 378.3 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.605e-05/0.1072, allocations: 24.38 kB / 378.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003957/0.1076, allocations: 244 kB / 378.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.1076, allocations: 3.938 kB / 378.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.1076, allocations: 19.94 kB / 378.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1076, allocations: 4 kB / 378.6 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.1079, allocations: 161.7 kB / 378.8 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009305/0.1089, allocations: 0.6933 MB / 379.5 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.199/0.3079, allocations: 166.1 kB / 379.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.3081, allocations: 79.52 kB / 379.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.3082, allocations: 6.5 kB / 379.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.3084, allocations: 124.9 kB / 379.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.286e-06/0.3084, allocations: 4.547 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.000484/0.3089, allocations: 215.6 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.309, allocations: 56.05 kB / 380.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.3091, allocations: 144.9 kB / 380.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.3091, allocations: 38.14 kB / 380.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.035e-05/0.3092, allocations: 129.3 kB / 380.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.971e-05/0.3093, allocations: 57.86 kB / 380.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.765e-05/0.3094, allocations: 78.75 kB / 380.6 MB, free: 12.53 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.912e-05/0.3094, allocations: 325.2 kB / 380.9 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.3096, allocations: 65.56 kB / 380.9 MB, free: 12.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.3097, allocations: 128.4 kB / 381.1 MB, free: 12.15 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002093/0.3099, allocations: 175.1 kB / 381.2 MB, free: 12.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3099, allocations: 2.062 kB / 381.2 MB, free: 12.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003379/0.3103, allocations: 246.8 kB / 381.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3103, allocations: 6.75 kB / 381.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.3103, allocations: 2.062 kB / 381.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.3103, allocations: 4 kB / 381.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.3105, allocations: 29.78 kB / 381.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.3105, allocations: 10.91 kB / 381.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.3106, allocations: 31.34 kB / 381.6 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.3106, allocations: 13.78 kB / 381.6 MB, free: 12.02 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.0001035/0.3108, allocations: 156.4 kB / 381.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.3108, allocations: 9.922 kB / 381.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003342/0.3111, allocations: 196.3 kB / 381.9 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.3111, allocations: 7.031 kB / 381.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.3112, allocations: 0.5 kB / 381.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.3112, allocations: 1.453 kB / 381.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008139/0.312, allocations: 0.5645 MB / 382.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.312, allocations: 4 kB / 382.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.525e-05/0.3121, allocations: 24.75 kB / 382.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.411e-06/0.3121, allocations: 1.062 kB / 382.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.3121, allocations: 6.562 kB / 382.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3121, allocations: 1.531 kB / 382.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3122, allocations: 0.5625 kB / 382.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003829/0.3125, allocations: 278.8 kB / 382.8 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.895e-05/0.3126, allocations: 90.38 kB / 382.9 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.3126, allocations: 13.22 kB / 382.9 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.3127, allocations: 9.125 kB / 382.9 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.572e-05/0.3128, allocations: 23.78 kB / 382.9 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.3128, allocations: 8.75 kB / 383 MB, free: 11.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.678e-05/0.3129, allocations: 101.4 kB / 383.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3129, allocations: 0 / 383.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.3132, allocations: 49.78 kB / 383.1 MB, free: 11.11 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.0005514/0.3138, allocations: 0.8289 MB / 383.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003599/0.3141, allocations: 186.3 kB / 384.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3141, allocations: 0 / 384.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.3143, allocations: 83.2 kB / 384.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.3146, allocations: 20.2 kB / 384.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.3166, allocations: 2.017 MB / 386.2 MB, free: 8.688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.3168, allocations: 0.7333 MB / 387 MB, free: 7.988 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.76e-05/0.3169, allocations: 21.66 kB / 387 MB, free: 7.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.776e-05/0.317, allocations: 60.59 kB / 387 MB, free: 7.949 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.317, allocations: 3.938 kB / 387 MB, free: 7.945 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.3372, allocations: 3.722 MB / 390.8 MB, free: 7.254 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/8.544, allocations: 14 kB / 390.8 MB, free: 7.242 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:initialStep.active,initialStep.inPort[1].occupied,initialStep.inPort[1].set,initialStep.localActive,initialStep.nIn,initialStep.nOut,initialStep.outPort[1].available,initialStep.outPort[1].reset,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.subgraphStatePort.activeSteps,stateGraphRoot.subgraphStatePort.activeStepsDummy,stateGraphRoot.subgraphStatePort.resume,stateGraphRoot.subgraphStatePort.suspend,stateGraphRoot.suspend,step.active,step.inPort[1].occupied,step.inPort[1].set,step.localActive,step.nIn,step.nOut,step.outPort[1].available,step.outPort[1].reset,time,transition1.condition,transition1.enableFire,transition1.enableTimer,transition1.fire,transition1.inPort.available,transition1.inPort.reset,transition1.localCondition,transition1.outPort.occupied,transition1.outPort.set,transition1.t,transition1.waitTime,transition2.condition,transition2.enableFire,transition2.enableTimer,transition2.fire,transition2.inPort.available,transition2.inPort.reset,transition2.localCondition,transition2.outPort.occupied,transition2.outPort.set,transition2.t,transition2.waitTime