Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 110.5 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.651/1.651, allocations: 222.9 MB / 241.1 MB, free: 13.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 41.16 kB / 300 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.1006, allocations: 49.45 MB / 349.5 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003094/0.1038, allocations: 1.787 MB / 351.3 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007011/0.1045, allocations: 299.1 kB / 351.6 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.1046, allocations: 4 kB / 351.6 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.1048, allocations: 23.8 kB / 351.6 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.227e-05/0.1048, allocations: 7.922 kB / 351.6 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.1052, allocations: 103.9 kB / 351.7 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002673/0.1055, allocations: 251.5 kB / 352 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.1057, allocations: 173.9 kB / 352.1 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.312e-05/0.1058, allocations: 87.64 kB / 352.2 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.106, allocations: 95.53 kB / 352.3 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.788e-05/0.106, allocations: 16 kB / 352.3 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.245e-05/0.1061, allocations: 24 kB / 352.3 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.005e-05/0.1062, allocations: 51.81 kB / 352.4 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.215e-05/0.1063, allocations: 95.52 kB / 352.5 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002217/0.1065, allocations: 211.6 kB / 352.7 MB, free: 1.285 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1065, allocations: 0 / 352.7 MB, free: 1.285 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1065, allocations: 0 / 352.7 MB, free: 1.285 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1065, allocations: 0 / 352.7 MB, free: 1.285 MB / 286.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.0006785/0.1072, allocations: 0.4909 MB / 353.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1072, allocations: 8.031 kB / 353.2 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.048e-05/0.1073, allocations: 66.66 kB / 353.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.943e-05/0.1074, allocations: 28.59 kB / 353.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.1076, allocations: 224.1 kB / 353.5 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.1077, allocations: 20.94 kB / 353.5 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.077e-05/0.1077, allocations: 28.38 kB / 353.6 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004531/0.1082, allocations: 278.5 kB / 353.8 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.1082, allocations: 3.938 kB / 353.8 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.665e-05/0.1082, allocations: 12 kB / 353.8 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.1083, allocations: 4 kB / 353.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003365/0.1086, allocations: 165.7 kB / 354 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.1098, allocations: 0.9749 MB / 355 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.1102, allocations: 173.4 kB / 355.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.1103, allocations: 85.69 kB / 355.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.1103, allocations: 8 kB / 355.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.1106, allocations: 140.7 kB / 355.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.1106, allocations: 0 / 355.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004408/0.111, allocations: 225.1 kB / 355.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.1111, allocations: 89.03 kB / 355.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.1112, allocations: 163.6 kB / 355.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.1113, allocations: 37.7 kB / 355.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.333e-05/0.1114, allocations: 136.5 kB / 356 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.355e-05/0.1114, allocations: 67.19 kB / 356.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.803e-05/0.1115, allocations: 77.67 kB / 356.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1117, allocations: 330.8 kB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.1118, allocations: 63.97 kB / 356.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.112, allocations: 140.5 kB / 356.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.1122, allocations: 193 kB / 356.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1122, allocations: 0 / 356.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003824/0.1126, allocations: 249.3 kB / 357.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1127, allocations: 8 kB / 357.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1127, allocations: 4 kB / 357.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.1127, allocations: 7.984 kB / 357.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.1129, allocations: 35.91 kB / 357.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.1129, allocations: 7.938 kB / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.113, allocations: 23.75 kB / 357.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.113, allocations: 16 kB / 357.2 MB, free: 12.41 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.0001847/0.1132, allocations: 165.8 kB / 357.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.1133, allocations: 19.81 kB / 357.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003538/0.1136, allocations: 186.3 kB / 357.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1136, allocations: 7.938 kB / 357.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.1136, allocations: 3.984 kB / 357.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1136, allocations: 0 / 357.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007642/0.1144, allocations: 0.5947 MB / 358.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1144, allocations: 0 / 358.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.008e-05/0.1145, allocations: 19.98 kB / 358.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.1145, allocations: 3.938 kB / 358.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.1146, allocations: 4 kB / 358.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1146, allocations: 0 / 358.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1146, allocations: 0 / 358.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003165/0.1149, allocations: 292.5 kB / 358.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.052e-05/0.115, allocations: 96.8 kB / 358.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.115, allocations: 8 kB / 358.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.876e-05/0.1151, allocations: 7.984 kB / 358.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.531e-05/0.1152, allocations: 23.91 kB / 358.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1152, allocations: 8 kB / 358.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.499e-05/0.1153, allocations: 98.27 kB / 358.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1153, allocations: 0 / 358.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.1156, allocations: 51.84 kB / 358.8 MB, free: 10.73 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: 20 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0006406/0.1163, allocations: 0.8418 MB / 359.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003522/0.1166, allocations: 192 kB / 359.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1166, allocations: 4.188 kB / 359.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.1168, allocations: 80.34 kB / 359.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.1171, allocations: 23.98 kB / 359.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.1195, allocations: 2.123 MB / 362 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.1198, allocations: 0.7443 MB / 362.8 MB, free: 6.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.863e-05/0.1199, allocations: 21.95 kB / 362.8 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.1201, allocations: 63.41 kB / 362.9 MB, free: 6.445 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1201, allocations: 4 kB / 362.9 MB, free: 6.441 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.15, allocations: 3.416 MB / 366.3 MB, free: 3.121 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.1502, allocations: 198.8 kB / 366.5 MB, free: 2.867 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.227, allocations: 3.938 kB / 366.5 MB, free: 2.863 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches