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.001538/0.001538, allocations: 102.6 kB / 17.72 MB, free: 5.371 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.001658/0.001658, 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.443/1.443, 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.001309/0.001309, allocations: 59.91 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09816/0.09948, allocations: 46.62 MB / 374.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003721/0.1032, allocations: 1.687 MB / 376.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007673/0.104, allocations: 256.1 kB / 376.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.1042, allocations: 11.94 kB / 376.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.1044, allocations: 27.69 kB / 376.6 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.172e-05/0.1045, allocations: 19.78 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004627/0.105, allocations: 115.8 kB / 376.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003973/0.1054, allocations: 263.5 kB / 377 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003325/0.1057, allocations: 181.5 kB / 377.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.804e-05/0.1058, allocations: 83.72 kB / 377.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.106, allocations: 103.5 kB / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.106, allocations: 24 kB / 377.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.41e-05/0.1061, allocations: 39.98 kB / 377.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.426e-05/0.1062, allocations: 55.83 kB / 377.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1063, allocations: 95.47 kB / 377.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003198/0.1066, allocations: 255.3 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1066, allocations: 0 / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1066, allocations: 0 / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1066, allocations: 0 / 377.8 MB, free: 1.91 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.0006593/0.1073, allocations: 494.2 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1074, allocations: 8.031 kB / 378.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.93e-05/0.1074, allocations: 70.72 kB / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/0.1075, allocations: 24.69 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.1078, allocations: 232 kB / 378.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.1079, allocations: 20.94 kB / 378.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.1079, allocations: 28.38 kB / 378.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004362/0.1084, allocations: 270.5 kB / 378.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1084, allocations: 7.938 kB / 378.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.1084, allocations: 15.98 kB / 379 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.1084, allocations: 4 kB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003082/0.1088, allocations: 161.6 kB / 379.1 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1976/0.3064, allocations: 0.9658 MB / 380.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.3067, allocations: 154.7 kB / 380.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.3068, allocations: 77.72 kB / 380.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.3069, allocations: 1.375 kB / 380.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002204/0.3071, allocations: 122.2 kB / 380.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.575e-06/0.3071, allocations: 1.375 kB / 380.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004386/0.3075, allocations: 205.5 kB / 380.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.3076, allocations: 59.16 kB / 380.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.3077, allocations: 154.8 kB / 380.8 MB, free: 11.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.3078, allocations: 38.27 kB / 380.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/0.3078, allocations: 143.2 kB / 381 MB, free: 11.85 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.756e-05/0.3079, allocations: 63.19 kB / 381.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.308, allocations: 81.05 kB / 381.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.412e-05/0.3081, allocations: 329 kB / 381.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.3082, allocations: 64.23 kB / 381.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.3084, allocations: 141.7 kB / 381.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.3086, allocations: 187.5 kB / 381.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3086, allocations: 0.9062 kB / 381.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000348/0.309, allocations: 250.2 kB / 382.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.309, allocations: 6.875 kB / 382.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.309, allocations: 2.312 kB / 382.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.309, allocations: 4.656 kB / 382.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.3092, allocations: 32.48 kB / 382.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.3092, allocations: 12.88 kB / 382.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.3093, allocations: 26.8 kB / 382.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.314e-05/0.3094, allocations: 13.92 kB / 382.2 MB, free: 11.26 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.0001275/0.3095, allocations: 156.2 kB / 382.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.3095, allocations: 14.81 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000353/0.3099, allocations: 188.5 kB / 382.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.3099, allocations: 7.234 kB / 382.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.3099, allocations: 5.531 kB / 382.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.3099, allocations: 1.359 kB / 382.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007948/0.3107, allocations: 0.5901 MB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3107, allocations: 0.6875 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.345e-05/0.3108, allocations: 20.52 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3108, allocations: 1.594 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.3109, allocations: 7.297 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3109, allocations: 3.312 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3109, allocations: 0 / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003281/0.3112, allocations: 282.1 kB / 383.5 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.3113, allocations: 95.89 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.3113, allocations: 6.859 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-05/0.3114, allocations: 4.094 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.3115, allocations: 21.12 kB / 383.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.3115, allocations: 10.7 kB / 383.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.116e-05/0.3115, allocations: 95.72 kB / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3115, allocations: 1.938 kB / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003155/0.3119, allocations: 51.06 kB / 383.7 MB, free: 10.29 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.0005284/0.3124, allocations: 0.8275 MB / 384.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.3128, allocations: 185.1 kB / 384.8 MB, free: 9.504 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3128, allocations: 0 / 384.8 MB, free: 9.504 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.3129, allocations: 85.06 kB / 384.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.3132, allocations: 26.48 kB / 384.9 MB, free: 9.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.3151, allocations: 2.043 MB / 386.9 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001795/0.3153, allocations: 0.7318 MB / 387.6 MB, free: 7.129 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.942e-05/0.3154, allocations: 26.25 kB / 387.7 MB, free: 7.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.345e-05/0.3155, allocations: 67.81 kB / 387.7 MB, free: 7.078 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3155, allocations: 0 / 387.7 MB, free: 7.078 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/0.3363, allocations: 3.74 MB / 391.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.245/8.582, allocations: 13 kB / 391.5 MB, free: 6.379 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