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.001323/0.001323, allocations: 106.5 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.001605/0.001606, allocations: 191 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.488/1.488, 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.001301/0.001301, allocations: 55.92 kB / 328 MB, free: 3.848 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09692/0.09823, allocations: 46.62 MB / 374.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003177/0.1014, allocations: 1.659 MB / 376.3 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007407/0.1022, allocations: 260 kB / 376.5 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.1024, allocations: 4 kB / 376.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.1026, allocations: 27.67 kB / 376.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.883e-05/0.1026, allocations: 19.8 kB / 376.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004573/0.1031, allocations: 111.8 kB / 376.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003621/0.1035, allocations: 271.5 kB / 377 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003489/0.1038, allocations: 198.8 kB / 377.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.104, allocations: 87.75 kB / 377.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.1041, allocations: 99.48 kB / 377.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.281e-05/0.1042, allocations: 24 kB / 377.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.858e-05/0.1043, allocations: 31.98 kB / 377.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.351e-05/0.1044, allocations: 59.83 kB / 377.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.1045, allocations: 99.47 kB / 377.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.105, allocations: 259.3 kB / 377.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.105, allocations: 0 / 377.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.105, allocations: 0 / 377.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.105, allocations: 4 kB / 377.8 MB, free: 1.914 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.0009458/0.106, allocations: 497.8 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.106, allocations: 12.03 kB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.187e-05/0.1061, allocations: 62.67 kB / 378.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.217e-05/0.1062, allocations: 28.64 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.1066, allocations: 228 kB / 378.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.1066, allocations: 24.94 kB / 378.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.1067, allocations: 28.36 kB / 378.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005273/0.1072, allocations: 278.5 kB / 378.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1073, allocations: 3.938 kB / 378.9 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/0.1073, allocations: 8 kB / 378.9 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.1073, allocations: 8 kB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003477/0.1077, allocations: 165.6 kB / 379.1 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.193/0.3007, allocations: 0.9601 MB / 380.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.301, allocations: 155.8 kB / 380.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.3012, allocations: 73.88 kB / 380.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.3012, allocations: 2.031 kB / 380.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/0.3014, allocations: 124.2 kB / 380.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.405e-06/0.3014, allocations: 0 / 380.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004298/0.3019, allocations: 215.2 kB / 380.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.3019, allocations: 59.44 kB / 380.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.302, allocations: 156.2 kB / 380.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.3021, allocations: 37.62 kB / 380.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.162e-05/0.3022, allocations: 148.2 kB / 381 MB, free: 11.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.858e-05/0.3022, allocations: 59.62 kB / 381.1 MB, free: 11.81 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.3023, allocations: 77.08 kB / 381.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.728e-05/0.3024, allocations: 327.6 kB / 381.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.3025, allocations: 63.08 kB / 381.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.3027, allocations: 144.5 kB / 381.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.3029, allocations: 186.8 kB / 381.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.3029, allocations: 4.938 kB / 381.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003644/0.3033, allocations: 249.9 kB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3033, allocations: 6.703 kB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3033, allocations: 2.75 kB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3033, allocations: 3.906 kB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.3035, allocations: 35.41 kB / 382.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.3035, allocations: 14.08 kB / 382.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.3036, allocations: 24.8 kB / 382.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.3037, allocations: 14.22 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.0001273/0.3038, allocations: 157 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.3038, allocations: 12.84 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003653/0.3042, allocations: 193.2 kB / 382.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.3042, allocations: 2.719 kB / 382.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3042, allocations: 6.172 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3043, allocations: 2.578 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007542/0.305, allocations: 0.5902 MB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.305, allocations: 0.6875 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.3052, allocations: 14.36 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.326e-05/0.3052, allocations: 1.312 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.548e-05/0.3053, allocations: 6.406 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3053, allocations: 4.328 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3053, allocations: 1.312 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003155/0.3056, allocations: 288.5 kB / 383.5 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.3057, allocations: 91.22 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.3057, allocations: 6.703 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.381e-05/0.3058, allocations: 9.156 kB / 383.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.204e-05/0.3059, allocations: 24.02 kB / 383.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.3059, allocations: 6.125 kB / 383.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.244e-05/0.306, allocations: 100.6 kB / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.306, allocations: 0 / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.3063, allocations: 52.3 kB / 383.8 MB, free: 10.28 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.0005135/0.3068, allocations: 0.821 MB / 384.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003521/0.3072, allocations: 181.6 kB / 384.8 MB, free: 9.504 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3072, allocations: 4.188 kB / 384.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.3073, allocations: 85.12 kB / 384.8 MB, free: 9.473 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.3076, allocations: 23.73 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.00189/0.3095, allocations: 2.057 MB / 386.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.3097, allocations: 0.7399 MB / 387.7 MB, free: 7.113 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.597e-05/0.3098, allocations: 28.12 kB / 387.7 MB, free: 7.109 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.848e-05/0.3099, allocations: 62.34 kB / 387.8 MB, free: 7.066 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3099, allocations: 0 / 387.8 MB, free: 7.066 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.3298, allocations: 3.78 MB / 391.5 MB, free: 6.375 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.225/8.555, allocations: 17.41 kB / 391.6 MB, free: 6.359 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