Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007387/0.0007388, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007966/0.0007966, allocations: 206.1 kB / 18.29 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.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002054, allocations: 4 kB / 307.8 MB, free: 0.7656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08314/0.08336, allocations: 51.53 MB / 359.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001565/0.08496, allocations: 1.229 MB / 360.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000583/0.08557, allocations: 295.1 kB / 360.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.106e-05/0.08567, allocations: 4 kB / 360.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.377e-05/0.08578, allocations: 19.81 kB / 360.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.467e-05/0.08582, allocations: 3.938 kB / 360.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.08614, allocations: 103.9 kB / 361 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002701/0.08642, allocations: 243.5 kB / 361.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.08668, allocations: 146.2 kB / 361.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.753e-05/0.08677, allocations: 63.78 kB / 361.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.0869, allocations: 91.53 kB / 361.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.08694, allocations: 8 kB / 361.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.908e-05/0.08699, allocations: 15.94 kB / 361.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.708e-05/0.08704, allocations: 35.84 kB / 361.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.565e-05/0.08714, allocations: 109.2 kB / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.08734, allocations: 191.3 kB / 361.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.08735, allocations: 0 / 361.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.08736, allocations: 0 / 361.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.08737, allocations: 0 / 361.9 MB, free: 10.68 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005739/0.08795, allocations: 450.8 kB / 362.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.088, allocations: 12.03 kB / 362.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.552e-05/0.08808, allocations: 58.72 kB / 362.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.08827, allocations: 28.69 kB / 362.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.0885, allocations: 224 kB / 362.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.08854, allocations: 24.94 kB / 362.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.08858, allocations: 24.38 kB / 362.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.08896, allocations: 236 kB / 362.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.08898, allocations: 3.938 kB / 362.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.08901, allocations: 12 kB / 362.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.08902, allocations: 4 kB / 362.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002764/0.0893, allocations: 169.6 kB / 363.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008519/0.09016, allocations: 0.6856 MB / 363.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.09044, allocations: 166.7 kB / 363.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.09056, allocations: 84.92 kB / 364 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.09058, allocations: 7.922 kB / 364 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001913/0.09078, allocations: 118.8 kB / 364.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.09079, allocations: 0 / 364.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003773/0.09117, allocations: 217.1 kB / 364.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.09122, allocations: 59.41 kB / 364.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.09133, allocations: 153.2 kB / 364.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.09137, allocations: 41.69 kB / 364.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.577e-05/0.09145, allocations: 128.7 kB / 364.7 MB, free: 7.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.645e-05/0.0915, allocations: 63.11 kB / 364.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.239e-05/0.09156, allocations: 45.69 kB / 364.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.09167, allocations: 326.8 kB / 365.2 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.09179, allocations: 60.62 kB / 365.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.09193, allocations: 132.1 kB / 365.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.09216, allocations: 179.2 kB / 365.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.09217, allocations: 7.938 kB / 365.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003312/0.09251, allocations: 237.3 kB / 365.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.09253, allocations: 4 kB / 365.8 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.09254, allocations: 4 kB / 365.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.09256, allocations: 4 kB / 365.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.09268, allocations: 27.92 kB / 365.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.0927, allocations: 8.219 kB / 365.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.365e-05/0.0928, allocations: 35.67 kB / 365.9 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.09282, allocations: 12 kB / 365.9 MB, free: 6.398 MB / 302.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.0001181/0.09295, allocations: 149.7 kB / 366 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.267e-05/0.09297, allocations: 19.8 kB / 366 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.053e-05/0.09304, allocations: 16.84 kB / 366 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.09305, allocations: 4 kB / 366 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.423e-06/0.09306, allocations: 4 kB / 366.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-06/0.09307, allocations: 4 kB / 366.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.09369, allocations: 0.5558 MB / 366.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.0937, allocations: 0 / 366.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.912e-05/0.09378, allocations: 19.92 kB / 366.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.09379, allocations: 4 kB / 366.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.09381, allocations: 4 kB / 366.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.09382, allocations: 4 kB / 366.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.09382, allocations: 3.938 kB / 366.6 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.09409, allocations: 263.3 kB / 366.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.09414, allocations: 92.89 kB / 367 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.09417, allocations: 8 kB / 367 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.535e-05/0.09426, allocations: 11.98 kB / 367 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.09433, allocations: 27.92 kB / 367 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.09434, allocations: 7.984 kB / 367.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.515e-05/0.0944, allocations: 91.27 kB / 367.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09441, allocations: 0 / 367.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.09467, allocations: 47.81 kB / 367.2 MB, free: 4.973 MB / 302.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: 17 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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 (24): * Single equations (assignments): 20 * 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.000494/0.09517, allocations: 0.8071 MB / 368 MB, free: 4.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002721/0.09546, allocations: 179.7 kB / 368.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.09547, allocations: 0 / 368.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.09558, allocations: 81.33 kB / 368.2 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.09585, allocations: 35.73 kB / 368.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.09774, allocations: 2.033 MB / 370.3 MB, free: 1.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.09802, allocations: 0.7248 MB / 371 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.957e-05/0.0981, allocations: 25.94 kB / 371.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.691e-05/0.09819, allocations: 55.42 kB / 371.1 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.0982, allocations: 0 / 371.1 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1499/0.2481, allocations: 3.049 MB / 374.2 MB, free: 18.42 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001232/0.2482, allocations: 193.9 kB / 374.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/1.936, allocations: 3.25 kB / 374.4 MB, free: 18.16 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches