Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 120.7 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 186.9 kB / 20.73 MB, free: 2.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] 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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 47.92 kB / 365.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09988, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002854/0.1027, allocations: 1.483 MB / 419.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006694/0.1034, allocations: 283.2 kB / 419.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.799e-05/0.1035, allocations: 0 / 419.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.1036, allocations: 27.67 kB / 419.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.606e-05/0.1037, allocations: 23.8 kB / 419.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.1041, allocations: 107.9 kB / 419.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003768/0.1044, allocations: 267.4 kB / 419.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.1047, allocations: 138.4 kB / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.1048, allocations: 83.72 kB / 420.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.1049, allocations: 103.6 kB / 420.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.517e-05/0.105, allocations: 20 kB / 420.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.925e-05/0.105, allocations: 32 kB / 420.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.71e-05/0.1051, allocations: 51.83 kB / 420.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.1052, allocations: 99.52 kB / 420.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003034/0.1055, allocations: 247 kB / 420.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1055, allocations: 3.938 kB / 420.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1055, allocations: 0 / 420.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.1055, allocations: 0 / 420.7 MB, free: 9.676 MB / 350.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.0007311/0.1063, allocations: 490.2 kB / 421.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.1063, allocations: 15.97 kB / 421.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.688e-05/0.1064, allocations: 58.72 kB / 421.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.1064, allocations: 20.8 kB / 421.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.1068, allocations: 228.1 kB / 421.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.1068, allocations: 24.94 kB / 421.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.1069, allocations: 24.38 kB / 421.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/0.1073, allocations: 248 kB / 421.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.1073, allocations: 3.938 kB / 421.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.1073, allocations: 12 kB / 421.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.1073, allocations: 4 kB / 421.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.1076, allocations: 157.7 kB / 422 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.1087, allocations: 0.6897 MB / 422.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.109, allocations: 158.8 kB / 422.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.1091, allocations: 76.77 kB / 422.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.1091, allocations: 3.938 kB / 422.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.1094, allocations: 123.2 kB / 423 MB, free: 7.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.1094, allocations: 0 / 423 MB, free: 7.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004468/0.1098, allocations: 218.5 kB / 423.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.1099, allocations: 55.41 kB / 423.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.11, allocations: 150 kB / 423.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.1101, allocations: 33.7 kB / 423.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/0.1103, allocations: 136.8 kB / 423.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.1103, allocations: 55.58 kB / 423.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.1104, allocations: 81.97 kB / 423.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002652/0.1107, allocations: 322.8 kB / 424 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1108, allocations: 68.56 kB / 424.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.111, allocations: 128.1 kB / 424.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.1112, allocations: 179.2 kB / 424.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1112, allocations: 0 / 424.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003864/0.1116, allocations: 249.5 kB / 424.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.1116, allocations: 4 kB / 424.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1116, allocations: 4 kB / 424.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.1117, allocations: 4 kB / 424.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.1118, allocations: 23.92 kB / 424.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1118, allocations: 7.938 kB / 424.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.513e-05/0.1119, allocations: 31.81 kB / 424.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.152e-05/0.1119, allocations: 15.98 kB / 424.7 MB, free: 5.344 MB / 350.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.0001679/0.1121, allocations: 161.7 kB / 424.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.268e-05/0.1121, allocations: 11.91 kB / 424.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003464/0.1125, allocations: 199 kB / 425.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.1125, allocations: 4 kB / 425.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1125, allocations: 0 / 425.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1125, allocations: 7.922 kB / 425.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007148/0.1132, allocations: 0.5645 MB / 425.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1132, allocations: 0 / 425.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/0.1133, allocations: 23.92 kB / 425.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1133, allocations: 8 kB / 425.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.1133, allocations: 0 / 425.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1133, allocations: 0 / 425.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1133, allocations: 7.875 kB / 425.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003397/0.1136, allocations: 287.2 kB / 426 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.248e-05/0.1137, allocations: 89 kB / 426.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.1137, allocations: 7.984 kB / 426.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.344e-05/0.1138, allocations: 8 kB / 426.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/0.1139, allocations: 31.91 kB / 426.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.1139, allocations: 4 kB / 426.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.77e-05/0.114, allocations: 98.14 kB / 426.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.114, allocations: 0 / 426.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.1142, allocations: 47.89 kB / 426.3 MB, free: 3.699 MB / 350.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.000687/0.1149, allocations: 0.8261 MB / 427.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003229/0.1152, allocations: 172 kB / 427.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1152, allocations: 0 / 427.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1154, allocations: 71.91 kB / 427.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.1157, allocations: 26.31 kB / 427.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.1179, allocations: 2.016 MB / 429.4 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.1183, allocations: 0.7323 MB / 430.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.796e-05/0.1184, allocations: 29.95 kB / 430.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.1185, allocations: 59.41 kB / 430.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1185, allocations: 0 / 430.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05083/0.1693, allocations: 3.678 MB / 433.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.763/7.932, allocations: 14.95 kB / 433.9 MB, free: 11.98 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.712392157875001]