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.001573/0.001573, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002138/0.002138, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.8 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09758, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.0029/0.1005, allocations: 1.473 MB / 359 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006997/0.1013, allocations: 284.9 kB / 359.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.1014, allocations: 3.938 kB / 359.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.1016, allocations: 31.73 kB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.333e-05/0.1016, allocations: 15.75 kB / 359.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003825/0.102, allocations: 111.8 kB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.1023, allocations: 255.6 kB / 359.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002822/0.1026, allocations: 174.3 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.1027, allocations: 83.77 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.1029, allocations: 99.53 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.459e-05/0.1029, allocations: 20 kB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.211e-05/0.103, allocations: 27.94 kB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.178e-05/0.1031, allocations: 55.89 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.1032, allocations: 99.5 kB / 360.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.1035, allocations: 227.2 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1035, allocations: 4 kB / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1035, allocations: 0 / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.1035, allocations: 0 / 360.5 MB, free: 11.03 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.0007408/0.1042, allocations: 494.7 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.1043, allocations: 8.031 kB / 361 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.435e-05/0.1044, allocations: 54.73 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/0.1046, allocations: 32.73 kB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.1049, allocations: 228 kB / 361.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.1049, allocations: 24.94 kB / 361.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.827e-05/0.105, allocations: 28.38 kB / 361.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/0.1054, allocations: 236 kB / 361.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.1054, allocations: 7.875 kB / 361.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.1054, allocations: 8 kB / 361.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.1054, allocations: 8 kB / 361.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.1057, allocations: 157.6 kB / 361.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.1068, allocations: 0.6857 MB / 362.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.1071, allocations: 178.7 kB / 362.6 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.1072, allocations: 83.83 kB / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.1072, allocations: 3.938 kB / 362.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002566/0.1075, allocations: 111.4 kB / 362.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.264e-06/0.1075, allocations: 0 / 362.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004118/0.1079, allocations: 220.2 kB / 363 MB, free: 8.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.108, allocations: 63.39 kB / 363.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.1081, allocations: 145.9 kB / 363.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.1081, allocations: 41.69 kB / 363.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.38e-05/0.1082, allocations: 128.6 kB / 363.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.532e-05/0.1083, allocations: 55.2 kB / 363.5 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.009e-05/0.1084, allocations: 74.02 kB / 363.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1085, allocations: 326.8 kB / 363.9 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.1086, allocations: 60.62 kB / 363.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.1088, allocations: 132.1 kB / 364 MB, free: 7.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.109, allocations: 174.7 kB / 364.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.109, allocations: 0 / 364.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003561/0.1094, allocations: 245.2 kB / 364.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1094, allocations: 4 kB / 364.5 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.1094, allocations: 12.22 kB / 364.5 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1095, allocations: 4 kB / 364.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.1096, allocations: 27.92 kB / 364.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1096, allocations: 4 kB / 364.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.1097, allocations: 31.67 kB / 364.5 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.1097, allocations: 11.94 kB / 364.5 MB, free: 6.699 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.0001382/0.1099, allocations: 157.7 kB / 364.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.1099, allocations: 11.89 kB / 364.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.833e-05/0.11, allocations: 24.84 kB / 364.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.11, allocations: 0 / 364.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.11, allocations: 3.938 kB / 364.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.11, allocations: 4 kB / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006753/0.1107, allocations: 0.5448 MB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1107, allocations: 3.938 kB / 365.3 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.369e-05/0.1108, allocations: 15.98 kB / 365.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.1108, allocations: 4 kB / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.1108, allocations: 8 kB / 365.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.1108, allocations: 0 / 365.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.886e-06/0.1108, allocations: 7.938 kB / 365.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.1111, allocations: 264.6 kB / 365.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.066e-05/0.1112, allocations: 92.86 kB / 365.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.1112, allocations: 8 kB / 365.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.761e-05/0.1113, allocations: 4 kB / 365.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.354e-05/0.1114, allocations: 27.91 kB / 365.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.1114, allocations: 8 kB / 365.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.88e-05/0.1115, allocations: 98.89 kB / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1115, allocations: 0 / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.1118, allocations: 47.84 kB / 365.9 MB, free: 5.281 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.active,transition1.enableFire,initialStep.active,$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 (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.0005335/0.1123, allocations: 0.8011 MB / 366.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003355/0.1127, allocations: 195.8 kB / 366.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1127, allocations: 0 / 366.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.1128, allocations: 79.91 kB / 366.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.1131, allocations: 26.89 kB / 367 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.1151, allocations: 1.967 MB / 368.9 MB, free: 2.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1154, allocations: 0.7323 MB / 369.7 MB, free: 1.309 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.581e-05/0.1155, allocations: 21.95 kB / 369.7 MB, free: 1.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.333e-05/0.1156, allocations: 55.42 kB / 369.7 MB, free: 1.238 MB / 302.1 MB Notification: Performance of SimCode: time 1.563e-06/0.1156, allocations: 0 / 369.7 MB, free: 1.238 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1826/0.2982, allocations: 3.331 MB / 373.1 MB, free: 19.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/8.028, allocations: 5.125 kB / 373.1 MB, free: 19.77 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