Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001215/0.001216, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001251/0.001251, allocations: 187 kB / 18.66 MB, free: 4.414 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.37/1.37, allocations: 205.1 MB / 224.5 MB, free: 12.27 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.001416/0.001416, allocations: 51.94 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1035, allocations: 46.62 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003337/0.1068, allocations: 1.663 MB / 376.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007855/0.1077, allocations: 260.1 kB / 376.5 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.1078, allocations: 7.938 kB / 376.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.108, allocations: 27.67 kB / 376.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.275e-05/0.1081, allocations: 19.8 kB / 376.6 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000486/0.1086, allocations: 115.8 kB / 376.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004312/0.109, allocations: 267.5 kB / 377 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003858/0.1094, allocations: 186.9 kB / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.1096, allocations: 91.77 kB / 377.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.1098, allocations: 99.53 kB / 377.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-05/0.1098, allocations: 24 kB / 377.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.406e-05/0.1099, allocations: 35.94 kB / 377.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.541e-05/0.11, allocations: 59.81 kB / 377.4 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.1102, allocations: 99.47 kB / 377.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003347/0.1105, allocations: 255.3 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.1105, allocations: 0 / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1105, allocations: 4 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.1106, 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.000774/0.1113, allocations: 493.9 kB / 378.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.1114, allocations: 12.03 kB / 378.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.265e-05/0.1115, allocations: 62.72 kB / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.485e-05/0.1115, allocations: 24.66 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003843/0.1119, allocations: 236 kB / 378.6 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.112, allocations: 20.94 kB / 378.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.112, allocations: 32.38 kB / 378.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004787/0.1125, allocations: 278.5 kB / 378.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.1126, allocations: 7.922 kB / 378.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.1126, allocations: 12 kB / 379 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.1126, allocations: 4 kB / 379 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.1129, allocations: 161.6 kB / 379.1 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.207/0.3199, allocations: 0.9628 MB / 380.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.3203, allocations: 156.9 kB / 380.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.3204, allocations: 72.45 kB / 380.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.3204, allocations: 6.594 kB / 380.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.3207, allocations: 117.3 kB / 380.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.535e-06/0.3207, allocations: 2.969 kB / 380.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004815/0.3212, allocations: 211.6 kB / 380.6 MB, free: 12.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.3212, allocations: 60.02 kB / 380.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.3214, allocations: 157 kB / 380.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.3214, allocations: 35.77 kB / 380.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.66e-05/0.3215, allocations: 145.6 kB / 381 MB, free: 11.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.681e-05/0.3215, allocations: 62.83 kB / 381.1 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3217, allocations: 76.44 kB / 381.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.159e-05/0.3217, allocations: 330.8 kB / 381.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3219, allocations: 63.17 kB / 381.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.3221, allocations: 141.8 kB / 381.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.3223, allocations: 183.5 kB / 381.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3223, allocations: 8.344 kB / 381.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003969/0.3227, allocations: 251.2 kB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.3228, allocations: 8.078 kB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.3228, allocations: 1.375 kB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.3228, allocations: 4.734 kB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.323, allocations: 32.7 kB / 382.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.834e-05/0.323, allocations: 16.03 kB / 382.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.3231, allocations: 26.69 kB / 382.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.58e-05/0.3232, allocations: 14.53 kB / 382.2 MB, free: 11.25 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.0001554/0.3234, allocations: 159.3 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.3234, allocations: 12.83 kB / 382.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003607/0.3238, allocations: 190 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3238, allocations: 2.656 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3238, allocations: 5.609 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.3238, allocations: 3.703 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008078/0.3246, allocations: 0.5941 MB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3246, allocations: 4.469 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.894e-05/0.3247, allocations: 14.7 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3247, allocations: 1.188 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.3247, allocations: 6.609 kB / 383.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3248, allocations: 4.266 kB / 383.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3248, allocations: 0.5625 kB / 383.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003187/0.3251, allocations: 287.8 kB / 383.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.089e-05/0.3251, allocations: 89.45 kB / 383.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.3252, allocations: 7.969 kB / 383.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.335e-05/0.3252, allocations: 10.3 kB / 383.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.704e-05/0.3253, allocations: 15.28 kB / 383.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.3253, allocations: 10.64 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.281e-05/0.3254, allocations: 97.08 kB / 383.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3254, allocations: 0 / 383.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003067/0.3257, allocations: 50.77 kB / 383.8 MB, free: 10.27 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,step.active,transition1.enableFire,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.0004743/0.3262, allocations: 0.826 MB / 384.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003287/0.3265, allocations: 181.1 kB / 384.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3265, allocations: 4.219 kB / 384.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.3267, allocations: 88.62 kB / 384.9 MB, free: 9.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.327, allocations: 20.8 kB / 384.9 MB, free: 9.449 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.329, allocations: 2.055 MB / 386.9 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.3292, allocations: 0.7369 MB / 387.7 MB, free: 7.105 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.918e-05/0.3293, allocations: 24.53 kB / 387.7 MB, free: 7.102 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.3294, allocations: 67.52 kB / 387.8 MB, free: 7.055 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3294, allocations: 0 / 387.8 MB, free: 7.055 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.3503, allocations: 3.78 MB / 391.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.195/8.545, allocations: 17.05 kB / 391.6 MB, free: 6.336 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,transition1.enableFire,transition2.enableFire Variables in the result:greaterEqual.threshold,greaterEqual.u,greaterEqual.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