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.0006978/0.0006978, allocations: 95.34 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008494/0.0008495, allocations: 202 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002204/0.0002204, allocations: 8 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08291/0.08315, allocations: 51.53 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001725/0.08491, allocations: 1.421 MB / 360.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006824/0.08562, allocations: 299.1 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.08576, allocations: 8 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001068/0.08588, allocations: 15.8 kB / 361.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.178e-05/0.08594, allocations: 11.94 kB / 361.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.08632, allocations: 107.9 kB / 361.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003094/0.08664, allocations: 247.5 kB / 361.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.08693, allocations: 159.4 kB / 361.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.542e-05/0.08704, allocations: 71.64 kB / 361.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.08717, allocations: 87.48 kB / 361.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.0872, allocations: 12 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.396e-05/0.08726, allocations: 12 kB / 361.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.356e-05/0.08732, allocations: 47.83 kB / 361.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.08743, allocations: 109.2 kB / 361.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.08766, allocations: 207.6 kB / 362.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.08767, allocations: 0 / 362.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.08768, allocations: 0 / 362.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.08769, allocations: 3.938 kB / 362.1 MB, free: 10.37 MB / 302.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.0005874/0.08829, allocations: 458.6 kB / 362.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.08833, allocations: 8.031 kB / 362.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.176e-05/0.0884, allocations: 54.73 kB / 362.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.08859, allocations: 32.64 kB / 362.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.08882, allocations: 228.1 kB / 362.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.08886, allocations: 24.94 kB / 362.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/0.08891, allocations: 28.38 kB / 363 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004176/0.08933, allocations: 278.3 kB / 363.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.08935, allocations: 0 / 363.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.08938, allocations: 8 kB / 363.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.08939, allocations: 8 kB / 363.2 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.08968, allocations: 165.6 kB / 363.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.09073, allocations: 0.975 MB / 364.4 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002671/0.091, allocations: 173.3 kB / 364.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.09113, allocations: 81.73 kB / 364.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.09115, allocations: 4 kB / 364.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.09138, allocations: 144.2 kB / 364.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.09139, allocations: 4 kB / 364.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003991/0.09179, allocations: 217.1 kB / 365 MB, free: 7.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.09185, allocations: 85.11 kB / 365.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.09196, allocations: 153.6 kB / 365.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.092, allocations: 41.81 kB / 365.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.447e-05/0.09209, allocations: 140.5 kB / 365.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.09214, allocations: 59.19 kB / 365.5 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.09221, allocations: 61.61 kB / 365.5 MB, free: 6.711 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.908e-05/0.09232, allocations: 330.8 kB / 365.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.09243, allocations: 59.97 kB / 365.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.09259, allocations: 144.3 kB / 366 MB, free: 6.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002377/0.09283, allocations: 196.9 kB / 366.2 MB, free: 5.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.09284, allocations: 0 / 366.2 MB, free: 5.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003552/0.0932, allocations: 245.5 kB / 366.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.09322, allocations: 8.062 kB / 366.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.09324, allocations: 4 kB / 366.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.09325, allocations: 4 kB / 366.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.09338, allocations: 31.92 kB / 366.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.0934, allocations: 15.91 kB / 366.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.789e-05/0.0935, allocations: 31.69 kB / 366.6 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.09353, allocations: 12 kB / 366.6 MB, free: 5.574 MB / 302.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.condition,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.0001361/0.09367, allocations: 170.7 kB / 366.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.09369, allocations: 7.906 kB / 366.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.346e-05/0.09374, allocations: 20.84 kB / 366.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.09375, allocations: 4 kB / 366.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.09376, allocations: 0 / 366.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.09377, allocations: 0 / 366.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006284/0.0944, allocations: 0.5841 MB / 367.4 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.09442, allocations: 4 kB / 367.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.542e-05/0.09449, allocations: 19.88 kB / 367.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.0945, allocations: 3.938 kB / 367.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.09452, allocations: 7.984 kB / 367.4 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.09452, allocations: 4 kB / 367.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.09453, allocations: 0 / 367.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002708/0.0948, allocations: 271.5 kB / 367.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.798e-05/0.09486, allocations: 100.9 kB / 367.8 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.09489, allocations: 8 kB / 367.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.124e-05/0.09498, allocations: 4 kB / 367.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.09505, allocations: 23.97 kB / 367.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.09507, allocations: 8 kB / 367.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.706e-05/0.09513, allocations: 97.94 kB / 367.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.09513, allocations: 0 / 367.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002734/0.09541, allocations: 55.69 kB / 368 MB, free: 4.094 MB / 302.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.active,step.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0004925/0.09591, allocations: 0.8106 MB / 368.8 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002798/0.0962, allocations: 180.2 kB / 368.9 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.09621, allocations: 4 kB / 368.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.09633, allocations: 81.33 kB / 369 MB, free: 2.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.0966, allocations: 19.98 kB / 369 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.09859, allocations: 2.128 MB / 371.2 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1335/0.2321, allocations: 0.7293 MB / 371.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001351/0.2323, allocations: 23.17 kB / 371.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.2324, allocations: 62.23 kB / 372 MB, free: 18.85 MB / 302.1 MB Notification: Performance of SimCode: time 1.303e-06/0.2324, allocations: 0 / 372 MB, free: 18.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01376/0.2462, allocations: 3.144 MB / 375.1 MB, free: 18.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001159/0.2463, allocations: 203 kB / 375.3 MB, free: 18.37 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.66/1.906, allocations: 1.281 kB / 375.3 MB, free: 18.37 MB / 302.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.0.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