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.0008272/0.0008272, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008608/0.0008608, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9084/0.9084, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.263e-06/1.263e-06, allocations: 0 / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.327e-05/1.454e-05, allocations: 2.281 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001719/0.001734, allocations: 1.451 MB / 319.9 MB, free: 4.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005342/0.002268, allocations: 279.1 kB / 320.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.504e-05/0.002343, allocations: 7.938 kB / 320.1 MB, free: 4.648 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.002455, allocations: 27.73 kB / 320.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.201e-05/0.002487, allocations: 15.81 kB / 320.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003499/0.002837, allocations: 119.8 kB / 320.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002353/0.003072, allocations: 271.4 kB / 320.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.00328, allocations: 145.9 kB / 320.7 MB, free: 4.074 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.003386, allocations: 135.7 kB / 320.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.856e-05/0.003474, allocations: 63.84 kB / 320.9 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.003502, allocations: 27.98 kB / 320.9 MB, free: 3.852 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.003568, allocations: 28 kB / 320.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.722e-05/0.003615, allocations: 59.81 kB / 321 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.754e-05/0.003673, allocations: 67.81 kB / 321.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00024/0.003913, allocations: 255.2 kB / 321.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.003915, allocations: 0 / 321.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.003915, allocations: 0 / 321.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.003919, allocations: 0 / 321.3 MB, free: 3.449 MB / 282.7 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.0004276/0.004347, allocations: 409.1 kB / 321.7 MB, free: 3.02 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.004379, allocations: 8.922 kB / 321.7 MB, free: 3.012 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.051e-05/0.004419, allocations: 54.73 kB / 321.8 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.004455, allocations: 24.83 kB / 321.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.00464, allocations: 173.5 kB / 322 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.004663, allocations: 20.88 kB / 322 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/0.004688, allocations: 28.31 kB / 322 MB, free: 2.684 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.004963, allocations: 239.3 kB / 322.3 MB, free: 2.438 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.004971, allocations: 192 / 322.3 MB, free: 2.438 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.004988, allocations: 12.38 kB / 322.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.004996, allocations: 8.125 kB / 322.3 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.005197, allocations: 157.9 kB / 322.4 MB, free: 2.262 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006583/0.005855, allocations: 0.6162 MB / 323 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.006059, allocations: 162 kB / 323.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.368e-05/0.006143, allocations: 68.77 kB / 323.3 MB, free: 1.367 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.006161, allocations: 7.984 kB / 323.3 MB, free: 1.359 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001351/0.006296, allocations: 115.3 kB / 323.4 MB, free: 1.234 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.062e-06/0.006297, allocations: 0 / 323.4 MB, free: 1.234 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002946/0.006592, allocations: 219.9 kB / 323.6 MB, free: 1.016 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.006629, allocations: 67.19 kB / 323.7 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.344e-05/0.006712, allocations: 157.8 kB / 323.8 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.006732, allocations: 37.7 kB / 323.9 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.062e-05/0.006792, allocations: 128.8 kB / 324 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.006828, allocations: 71.48 kB / 324.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.49e-05/0.006893, allocations: 74 kB / 324.1 MB, free: 456 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.76e-05/0.00697, allocations: 326.8 kB / 324.5 MB, free: 120 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.581e-05/0.007046, allocations: 64.62 kB / 324.5 MB, free: 56 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.007166, allocations: 128.1 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.00733, allocations: 170.7 kB / 324.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.007332, allocations: 0 / 324.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002395/0.007571, allocations: 249.3 kB / 325.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.007583, allocations: 7.938 kB / 325.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.007589, allocations: 4 kB / 325.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.0076, allocations: 4 kB / 325.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.201e-05/0.007682, allocations: 31.92 kB / 325.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.007687, allocations: 4.219 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.596e-05/0.007743, allocations: 27.78 kB / 325.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.007764, allocations: 19.98 kB / 325.1 MB, free: 15.37 MB / 298.7 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 9.097e-05/0.007855, allocations: 145.8 kB / 325.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.00787, allocations: 15.89 kB / 325.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002298/0.008099, allocations: 218.9 kB / 325.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.008102, allocations: 4 kB / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.008106, allocations: 0 / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.00811, allocations: 0 / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004385/0.008548, allocations: 0.5246 MB / 326 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.00855, allocations: 0 / 326 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.984e-05/0.00859, allocations: 16 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.008593, allocations: 4 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.008602, allocations: 3.984 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.008603, allocations: 0 / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.008604, allocations: 0 / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001973/0.008801, allocations: 287.2 kB / 326.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.3e-05/0.008814, allocations: 19.84 kB / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.00883, allocations: 4 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.521e-05/0.008875, allocations: 15.98 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.008931, allocations: 23.95 kB / 326.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.008941, allocations: 11.94 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.58e-05/0.008976, allocations: 91.27 kB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008976, allocations: 0 / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000204/0.00918, allocations: 55.83 kB / 326.6 MB, free: 13.86 MB / 298.7 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.0003922/0.009573, allocations: 0.8261 MB / 327.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002181/0.009791, allocations: 168.1 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.009792, allocations: 4.125 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.318e-05/0.009875, allocations: 75.84 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.01007, allocations: 31.91 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.01154, allocations: 2.005 MB / 329.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.01168, allocations: 132.4 kB / 329.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.283e-05/0.01174, allocations: 21.95 kB / 329.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.381e-05/0.01181, allocations: 60.47 kB / 329.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.01181, allocations: 0 / 329.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01566/0.02747, allocations: 4.458 MB / 334.3 MB, free: 6.051 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.901/6.929, allocations: 3.281 kB / 334.3 MB, free: 6.051 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.612356490455568]