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.001086/0.001087, allocations: 110.5 kB / 17.73 MB, free: 5.312 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.001181/0.001181, allocations: 183 kB / 18.66 MB, free: 4.387 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.408/1.408, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001413/0.001414, allocations: 47.94 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.0959, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002617/0.09854, allocations: 1.473 MB / 376.1 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000675/0.09924, allocations: 247.3 kB / 376.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.09937, allocations: 7.938 kB / 376.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.09953, allocations: 27.73 kB / 376.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.166e-05/0.09959, allocations: 11.81 kB / 376.4 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000469/0.1001, allocations: 119.8 kB / 376.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000302/0.1004, allocations: 251.6 kB / 376.7 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000313/0.1007, allocations: 170.3 kB / 376.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.1008, allocations: 83.7 kB / 377 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.101, allocations: 99.53 kB / 377.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.101, allocations: 24 kB / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.323e-05/0.1011, allocations: 28 kB / 377.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.072e-05/0.1012, allocations: 55.83 kB / 377.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.101e-05/0.1013, allocations: 99.52 kB / 377.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002557/0.1015, allocations: 239.5 kB / 377.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1015, allocations: 3.938 kB / 377.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1015, allocations: 0 / 377.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.1016, allocations: 0 / 377.5 MB, free: 2.176 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.0006145/0.1022, allocations: 482.5 kB / 378 MB, free: 1.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1022, allocations: 12.03 kB / 378 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.825e-05/0.1023, allocations: 58.72 kB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.487e-05/0.1024, allocations: 24.66 kB / 378.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.1027, allocations: 236 kB / 378.3 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.783e-05/0.1027, allocations: 20.94 kB / 378.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.334e-05/0.1027, allocations: 24.38 kB / 378.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/0.1032, allocations: 240 kB / 378.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1032, allocations: 3.938 kB / 378.6 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.1032, allocations: 8 kB / 378.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.1032, allocations: 8 kB / 378.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002992/0.1035, allocations: 165.6 kB / 378.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.1046, allocations: 0.6934 MB / 379.5 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1817/0.2864, allocations: 165.7 kB / 379.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.2865, allocations: 76.53 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.2866, allocations: 7.25 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.2868, allocations: 126.1 kB / 379.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.036e-06/0.2868, allocations: 0 / 379.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004738/0.2873, allocations: 219.4 kB / 380.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.2874, allocations: 59.64 kB / 380.1 MB, free: 12.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.2875, allocations: 147 kB / 380.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.2875, allocations: 40.19 kB / 380.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.723e-05/0.2876, allocations: 124.5 kB / 380.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.472e-05/0.2877, allocations: 60.23 kB / 380.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.887e-05/0.2878, allocations: 76.16 kB / 380.6 MB, free: 12.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.447e-05/0.2878, allocations: 329 kB / 380.9 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.2879, allocations: 63.27 kB / 380.9 MB, free: 12.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.2881, allocations: 128.2 kB / 381.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002424/0.2884, allocations: 174.1 kB / 381.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2884, allocations: 3.75 kB / 381.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003779/0.2888, allocations: 246.6 kB / 381.5 MB, free: 12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.2888, allocations: 5.5 kB / 381.5 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.2888, allocations: 5.781 kB / 381.5 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/0.2888, allocations: 4.641 kB / 381.5 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.289, allocations: 32.84 kB / 381.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.289, allocations: 4.125 kB / 381.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2891, allocations: 35.22 kB / 381.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.2891, allocations: 14.53 kB / 381.6 MB, free: 11.98 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.0001237/0.2893, allocations: 151.7 kB / 381.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.2893, allocations: 13.5 kB / 381.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003773/0.2897, allocations: 200.1 kB / 381.9 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.2897, allocations: 11.12 kB / 381.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.2897, allocations: 0.8906 kB / 381.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.2897, allocations: 1.969 kB / 381.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009008/0.2906, allocations: 0.5634 MB / 382.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2907, allocations: 1.266 kB / 382.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.2908, allocations: 18.05 kB / 382.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.2908, allocations: 1 kB / 382.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.2908, allocations: 6.281 kB / 382.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.2908, allocations: 2.797 kB / 382.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2908, allocations: 4.391 kB / 382.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000451/0.2913, allocations: 284.7 kB / 382.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.954e-05/0.2913, allocations: 93.36 kB / 382.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.2914, allocations: 4.562 kB / 382.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.359e-05/0.2915, allocations: 9.859 kB / 382.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.452e-05/0.2916, allocations: 26.28 kB / 382.9 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.2916, allocations: 5.828 kB / 383 MB, free: 11.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.803e-05/0.2917, allocations: 101.1 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2917, allocations: 1.438 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003465/0.292, allocations: 49.62 kB / 383.1 MB, free: 11.07 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.0006323/0.2927, allocations: 0.8303 MB / 383.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003872/0.2931, allocations: 181.5 kB / 384.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.2931, allocations: 0 / 384.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.2933, allocations: 89.61 kB / 384.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.2936, allocations: 20.47 kB / 384.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.2956, allocations: 2.011 MB / 386.2 MB, free: 8.652 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001652/0.2958, allocations: 0.7283 MB / 387 MB, free: 7.957 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.911e-05/0.2958, allocations: 26.62 kB / 387 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.308e-05/0.2959, allocations: 63.2 kB / 387 MB, free: 7.91 MB / 318.1 MB Notification: Performance of SimCode: time 7.91e-07/0.296, allocations: 0 / 387 MB, free: 7.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/0.3198, allocations: 3.725 MB / 390.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.545, allocations: 9.047 kB / 390.8 MB, free: 7.211 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