Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 63.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2934, allocations: 50.56 MB / 408.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00282/0.2963, allocations: 1.68 MB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007273/0.297, allocations: 295.1 kB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.897e-05/0.2971, allocations: 7.938 kB / 410.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.2973, allocations: 23.73 kB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.584e-05/0.2974, allocations: 19.73 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.2978, allocations: 119.8 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003504/0.2982, allocations: 275.5 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003231/0.2985, allocations: 186.9 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.2986, allocations: 99.69 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.2988, allocations: 95.55 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.938e-05/0.2988, allocations: 20 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.313e-05/0.2989, allocations: 35.98 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.006e-05/0.299, allocations: 63.77 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.2991, allocations: 95.52 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003611/0.2995, allocations: 257.9 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2995, allocations: 0 / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2995, allocations: 7.938 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2995, allocations: 4 kB / 412.1 MB, free: 14.22 MB / 334.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.000716/0.3003, allocations: 0.4905 MB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3003, allocations: 8.031 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.993e-05/0.3004, allocations: 54.73 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001998/0.3006, allocations: 32.78 kB / 412.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.3009, allocations: 232 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/0.301, allocations: 24.94 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.301, allocations: 32.38 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.3015, allocations: 266.6 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3015, allocations: 7.875 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.3015, allocations: 8 kB / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3016, allocations: 4 kB / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.3019, allocations: 165.6 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.303, allocations: 0.9635 MB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.3033, allocations: 180.6 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.3035, allocations: 85.78 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.3035, allocations: 0 / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.3037, allocations: 140 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.212e-06/0.3038, allocations: 0 / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004414/0.3042, allocations: 217.4 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.325e-05/0.3043, allocations: 93.02 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.3044, allocations: 161.6 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.3045, allocations: 37.7 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.3046, allocations: 132.8 kB / 415.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.292e-05/0.3047, allocations: 67.5 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.3048, allocations: 81.77 kB / 415.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3049, allocations: 330.8 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.305, allocations: 67.75 kB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.3052, allocations: 132.5 kB / 416 MB, free: 9.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.3055, allocations: 196.3 kB / 416.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3055, allocations: 0 / 416.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003813/0.3059, allocations: 253.3 kB / 416.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3059, allocations: 15.92 kB / 416.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3059, allocations: 4 kB / 416.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.306, allocations: 8.281 kB / 416.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.3061, allocations: 27.92 kB / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.3061, allocations: 4 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.3062, allocations: 31.78 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.3062, allocations: 12 kB / 416.6 MB, free: 9.367 MB / 334.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001557/0.3064, allocations: 165.6 kB / 416.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.3064, allocations: 15.91 kB / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.851e-05/0.3065, allocations: 16.84 kB / 416.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.3065, allocations: 8 kB / 416.8 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3065, allocations: 0 / 416.8 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.3065, allocations: 3.984 kB / 416.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007269/0.3073, allocations: 0.5782 MB / 417.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.3073, allocations: 4 kB / 417.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.378e-05/0.3074, allocations: 15.98 kB / 417.4 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.3074, allocations: 7.938 kB / 417.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.3074, allocations: 7.938 kB / 417.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3074, allocations: 0 / 417.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.3074, allocations: 11.94 kB / 417.4 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.3077, allocations: 268.2 kB / 417.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.504e-05/0.3078, allocations: 92.95 kB / 417.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.3078, allocations: 7.938 kB / 417.7 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.331e-05/0.3079, allocations: 4 kB / 417.7 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-05/0.308, allocations: 23.97 kB / 417.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.308, allocations: 8 kB / 417.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.516e-05/0.3081, allocations: 102.5 kB / 417.9 MB, free: 7.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3081, allocations: 0 / 417.9 MB, free: 7.934 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002983/0.3084, allocations: 55.88 kB / 417.9 MB, free: 7.879 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006196/0.309, allocations: 0.8118 MB / 418.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003268/0.3094, allocations: 184 kB / 418.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3094, allocations: 0 / 418.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.3095, allocations: 79.84 kB / 419 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.3098, allocations: 23.98 kB / 419 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.3122, allocations: 2.075 MB / 421.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.3126, allocations: 0.7365 MB / 421.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.21e-05/0.3126, allocations: 25.89 kB / 421.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.3128, allocations: 59.41 kB / 421.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3128, allocations: 0 / 421.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.3381, allocations: 3.501 MB / 425.4 MB, free: 276 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.084/8.422, allocations: 12.02 kB / 425.4 MB, free: 268 kB / 334.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches