Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 63.81 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.09249, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003057/0.09558, allocations: 1.703 MB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006483/0.09625, allocations: 291.1 kB / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.09637, allocations: 4 kB / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.09652, allocations: 27.67 kB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.424e-05/0.09658, allocations: 15.81 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.09693, allocations: 123.8 kB / 359.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.09723, allocations: 267.5 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.09753, allocations: 185.5 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.09765, allocations: 87.72 kB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.09778, allocations: 103.5 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.09782, allocations: 24 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.419e-05/0.09789, allocations: 32 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.127e-05/0.09797, allocations: 59.81 kB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.786e-05/0.09807, allocations: 103.5 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.09833, allocations: 247.5 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09834, allocations: 0 / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09835, allocations: 0 / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.09836, allocations: 0 / 360.8 MB, free: 10.74 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.0006209/0.09899, allocations: 494.7 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.09903, allocations: 8.031 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.411e-05/0.0991, allocations: 58.72 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.0993, allocations: 32.64 kB / 361.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.09953, allocations: 228 kB / 361.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.09957, allocations: 32.86 kB / 361.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.688e-05/0.09962, allocations: 28.38 kB / 361.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004133/0.1, allocations: 270.6 kB / 361.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1001, allocations: 3.938 kB / 361.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.1001, allocations: 8 kB / 361.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1001, allocations: 4 kB / 361.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.1004, allocations: 165.5 kB / 362.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.1015, allocations: 0.9595 MB / 363.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.1018, allocations: 177.3 kB / 363.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.1019, allocations: 89.06 kB / 363.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.1019, allocations: 0 / 363.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.1022, allocations: 136.2 kB / 363.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.1022, allocations: 0 / 363.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004093/0.1026, allocations: 225.2 kB / 363.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.1026, allocations: 81.11 kB / 363.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.1028, allocations: 153.2 kB / 363.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.1028, allocations: 41.83 kB / 364 MB, free: 7.328 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.731e-05/0.1029, allocations: 144.5 kB / 364.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.33e-05/0.1029, allocations: 59.2 kB / 364.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.613e-05/0.103, allocations: 77.69 kB / 364.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1032, allocations: 326.8 kB / 364.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.1033, allocations: 71.69 kB / 364.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.1035, allocations: 136.5 kB / 364.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.1037, allocations: 200.4 kB / 364.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1037, allocations: 0 / 364.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003892/0.1041, allocations: 261.3 kB / 365.2 MB, free: 5.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.1041, allocations: 4 kB / 365.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1042, allocations: 4 kB / 365.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.1042, allocations: 7.938 kB / 365.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.1043, allocations: 31.92 kB / 365.2 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.1043, allocations: 4 kB / 365.2 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.1044, allocations: 31.75 kB / 365.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.1045, allocations: 15.98 kB / 365.3 MB, free: 5.895 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.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.0001439/0.1046, allocations: 166.8 kB / 365.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.1046, allocations: 15.81 kB / 365.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.4e-05/0.1047, allocations: 20.83 kB / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1047, allocations: 0 / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1047, allocations: 4 kB / 365.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1047, allocations: 0 / 365.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.1054, allocations: 0.582 MB / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1054, allocations: 4 kB / 366.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.138e-05/0.1055, allocations: 15.98 kB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.1055, allocations: 3.938 kB / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.1055, allocations: 4 kB / 366.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1055, allocations: 4 kB / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1055, allocations: 0 / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/0.1058, allocations: 276 kB / 366.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.1058, allocations: 89.02 kB / 366.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/0.1059, allocations: 11.94 kB / 366.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.392e-05/0.106, allocations: 7.984 kB / 366.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.554e-05/0.1061, allocations: 15.98 kB / 366.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.1061, allocations: 11.98 kB / 366.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.02e-05/0.1061, allocations: 95.27 kB / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1061, allocations: 0 / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.1064, allocations: 55.75 kB / 366.7 MB, free: 4.418 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.localActive,transition1.enableFire,step.active,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.0005385/0.107, allocations: 0.8135 MB / 367.5 MB, free: 3.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003284/0.1073, allocations: 191.9 kB / 367.7 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1073, allocations: 4.562 kB / 367.7 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.1075, allocations: 79.91 kB / 367.7 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.1077, allocations: 29.62 kB / 367.8 MB, free: 3.285 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.1098, allocations: 2.051 MB / 369.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.1101, allocations: 0.7365 MB / 370.6 MB, free: 332 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.557e-05/0.1101, allocations: 17.95 kB / 370.6 MB, free: 316 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.637e-05/0.1102, allocations: 63.41 kB / 370.6 MB, free: 252 kB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1103, allocations: 0 / 370.6 MB, free: 252 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1689/0.2792, allocations: 3.389 MB / 374 MB, free: 20.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.635/7.914, allocations: 10.86 kB / 374 MB, free: 20.03 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches