Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001208/0.001208, allocations: 109.5 kB / 17.73 MB, free: 5.363 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.00128/0.00128, allocations: 188.1 kB / 18.66 MB, free: 4.441 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.407/1.407, 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.001436/0.001437, allocations: 51.92 kB / 328 MB, free: 3.844 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.09987, allocations: 46.62 MB / 374.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003515/0.1034, allocations: 1.683 MB / 376.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008917/0.1044, allocations: 264.1 kB / 376.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.1045, allocations: 11.94 kB / 376.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.1048, allocations: 27.69 kB / 376.6 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.354e-05/0.1049, allocations: 15.8 kB / 376.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005325/0.1054, allocations: 119.8 kB / 376.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004292/0.1059, allocations: 263.5 kB / 377 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000369/0.1062, allocations: 185.5 kB / 377.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.1064, allocations: 83.77 kB / 377.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.1065, allocations: 103.5 kB / 377.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.1066, allocations: 20 kB / 377.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.651e-05/0.1067, allocations: 39.98 kB / 377.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.759e-05/0.1067, allocations: 51.84 kB / 377.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.1069, allocations: 103.5 kB / 377.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.1072, allocations: 251.3 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1072, allocations: 4 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1072, allocations: 0 / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1072, allocations: 0 / 377.8 MB, free: 1.906 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000704/0.1079, allocations: 490.1 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.108, allocations: 8.031 kB / 378.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.734e-05/0.1081, allocations: 66.72 kB / 378.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.961e-05/0.1081, allocations: 28.73 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.1085, allocations: 236 kB / 378.6 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.1085, allocations: 20.94 kB / 378.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.21e-05/0.1086, allocations: 28.38 kB / 378.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000446/0.109, allocations: 270.5 kB / 378.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.109, allocations: 7.938 kB / 378.9 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.1091, allocations: 15.98 kB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1091, allocations: 8 kB / 379 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003247/0.1094, allocations: 161.6 kB / 379.1 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2061/0.3155, allocations: 0.9568 MB / 380.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.3158, allocations: 155.1 kB / 380.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.3159, allocations: 78.39 kB / 380.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.316, allocations: 1.969 kB / 380.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002147/0.3162, allocations: 118.3 kB / 380.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.945e-06/0.3162, allocations: 0 / 380.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000455/0.3167, allocations: 210.7 kB / 380.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.3167, allocations: 62.02 kB / 380.7 MB, free: 12.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.3169, allocations: 157.1 kB / 380.8 MB, free: 12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.3169, allocations: 38.67 kB / 380.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.317, allocations: 142.6 kB / 381 MB, free: 11.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/0.3171, allocations: 62.42 kB / 381.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.3172, allocations: 77.16 kB / 381.2 MB, free: 11.81 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.451e-05/0.3173, allocations: 328.6 kB / 381.5 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.3174, allocations: 64.89 kB / 381.5 MB, free: 11.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.3176, allocations: 140.9 kB / 381.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.3178, allocations: 186.9 kB / 381.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3178, allocations: 0.8125 kB / 381.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003726/0.3182, allocations: 251.2 kB / 382.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.3182, allocations: 6.062 kB / 382.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3182, allocations: 2.75 kB / 382.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.3183, allocations: 5.578 kB / 382.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.3184, allocations: 32.84 kB / 382.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.3185, allocations: 14.83 kB / 382.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.3186, allocations: 28.78 kB / 382.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.3186, allocations: 11.75 kB / 382.2 MB, free: 11.28 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001398/0.3188, allocations: 159.3 kB / 382.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.987e-05/0.3188, allocations: 14.66 kB / 382.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003531/0.3192, allocations: 189.7 kB / 382.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3192, allocations: 3.219 kB / 382.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3192, allocations: 6.312 kB / 382.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.3192, allocations: 5.531 kB / 382.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000796/0.32, allocations: 0.5876 MB / 383.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.32, allocations: 1.375 kB / 383.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.929e-05/0.3201, allocations: 21.09 kB / 383.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.3201, allocations: 1.031 kB / 383.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.3201, allocations: 7.047 kB / 383.2 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3201, allocations: 1.219 kB / 383.2 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3202, allocations: 0 / 383.2 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.3204, allocations: 285.7 kB / 383.5 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.855e-05/0.3205, allocations: 90.48 kB / 383.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.3205, allocations: 10.05 kB / 383.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-05/0.3206, allocations: 4.297 kB / 383.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.654e-05/0.3207, allocations: 22.58 kB / 383.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.3207, allocations: 10.36 kB / 383.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.788e-05/0.3208, allocations: 95.91 kB / 383.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3208, allocations: 0 / 383.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.3211, allocations: 51.12 kB / 383.8 MB, free: 10.3 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 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0004838/0.3216, allocations: 0.8256 MB / 384.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003388/0.3219, allocations: 185.7 kB / 384.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3219, allocations: 0 / 384.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.3221, allocations: 82.77 kB / 384.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.3224, allocations: 28.83 kB / 384.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.3243, allocations: 2.038 MB / 386.9 MB, free: 7.848 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.3245, allocations: 0.7362 MB / 387.6 MB, free: 7.148 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.904e-05/0.3246, allocations: 26.94 kB / 387.7 MB, free: 7.145 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.3247, allocations: 66.77 kB / 387.7 MB, free: 7.098 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3247, allocations: 0 / 387.7 MB, free: 7.098 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.3491, allocations: 3.746 MB / 391.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.245/8.594, allocations: 13.06 kB / 391.5 MB, free: 6.383 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:SetBoolean1.y,SetBoolean2.y,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,timer.u,timer.y,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