Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001776/0.001776, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] 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.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 63.89 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.12, allocations: 53.37 MB / 427.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.003072/0.123, allocations: 1.484 MB / 428.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002004/0.1232, allocations: 35.91 kB / 428.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.098e-05/0.1233, allocations: 3.938 kB / 428.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.1233, allocations: 0 / 428.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.646e-05/0.1234, allocations: 3.938 kB / 428.6 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.1236, allocations: 31.86 kB / 428.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.1237, allocations: 39.91 kB / 428.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.845e-05/0.1238, allocations: 7.984 kB / 428.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.394e-05/0.1239, allocations: 19.92 kB / 428.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.414e-05/0.1239, allocations: 15.92 kB / 428.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.1239, allocations: 4 kB / 428.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.112e-05/0.124, allocations: 4 kB / 428.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.143e-05/0.124, allocations: 7.984 kB / 428.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.61e-05/0.124, allocations: 15.88 kB / 428.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.1241, allocations: 39.81 kB / 428.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1241, allocations: 4 kB / 428.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1241, allocations: 0 / 428.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.1242, allocations: 0 / 428.8 MB, free: 2.988 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006238/0.1248, allocations: 365.9 kB / 429.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.1248, allocations: 8.031 kB / 429.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.471e-05/0.1248, allocations: 192 / 429.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.159e-05/0.1249, allocations: 38.75 kB / 429.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.009e-05/0.1249, allocations: 4.891 kB / 429.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.1252, allocations: 184.3 kB / 429.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.1252, allocations: 4.375 kB / 429.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.1252, allocations: 4.312 kB / 429.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006987/0.1259, allocations: 171.5 kB / 429.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.1259, allocations: 0 / 429.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.1259, allocations: 0 / 429.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.1259, allocations: 4 kB / 429.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.1262, allocations: 51.88 kB / 429.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001739/0.1264, allocations: 161.7 kB / 429.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003378/0.1267, allocations: 78.52 kB / 429.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.1269, allocations: 36.91 kB / 429.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.1269, allocations: 4 kB / 429.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.1269, allocations: 38.48 kB / 429.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.1269, allocations: 4 kB / 429.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005246/0.1274, allocations: 113.7 kB / 430 MB, free: 1.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/0.1275, allocations: 55.44 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.1276, allocations: 109.8 kB / 430.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.1276, allocations: 25.7 kB / 430.2 MB, free: 1.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.654e-05/0.1277, allocations: 84.14 kB / 430.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.1277, allocations: 3.953 kB / 430.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.919e-05/0.1277, allocations: 25.64 kB / 430.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1279, allocations: 318.8 kB / 430.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.243e-05/0.1279, allocations: 4 kB / 430.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.75e-05/0.128, allocations: 35.42 kB / 430.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.702e-05/0.128, allocations: 43.31 kB / 430.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.128, allocations: 0 / 430.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.961e-05/0.1281, allocations: 57.56 kB / 430.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1281, allocations: 14.44 kB / 430.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.1281, allocations: 0 / 430.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.1282, allocations: 0 / 430.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.354e-05/0.1282, allocations: 8 kB / 430.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.1282, allocations: 4 kB / 430.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.208e-05/0.1283, allocations: 4 kB / 430.8 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.1283, allocations: 4.125 kB / 430.8 MB, free: 0.7031 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.ramp.counter,ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.063e-05/0.1284, allocations: 113.8 kB / 430.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003293/0.1287, allocations: 97.47 kB / 431 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.988e-05/0.1287, allocations: 7.906 kB / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1287, allocations: 0 / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1287, allocations: 0 / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1287, allocations: 0 / 431 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.1289, allocations: 157.7 kB / 431.2 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1289, allocations: 3.984 kB / 431.2 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.129, allocations: 23.98 kB / 431.2 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.129, allocations: 3.938 kB / 431.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.129, allocations: 0 / 431.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.129, allocations: 4.125 kB / 431.2 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.129, allocations: 0 / 431.2 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003455/0.1293, allocations: 113 kB / 431.3 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.247e-05/0.1294, allocations: 88.98 kB / 431.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.1294, allocations: 4 kB / 431.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.19e-05/0.1295, allocations: 11.98 kB / 431.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.225e-06/0.1295, allocations: 0 / 431.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.1295, allocations: 3.938 kB / 431.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.232e-05/0.1296, allocations: 91.27 kB / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1296, allocations: 0 / 431.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001865/0.1297, allocations: 4 kB / 431.5 MB, free: 15.88 MB / 366.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: 1 (ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.000855/0.1306, allocations: 0.6866 MB / 432.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000223/0.1308, allocations: 43.91 kB / 432.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1308, allocations: 0 / 432.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.1308, allocations: 0 / 432.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.1313, allocations: 39.98 kB / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.1324, allocations: 1.197 MB / 433.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.1327, allocations: 0.6807 MB / 434.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.651e-05/0.1328, allocations: 4.281 kB / 434.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.711e-05/0.1328, allocations: 15.42 kB / 434.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1328, allocations: 0 / 434.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01897/0.1518, allocations: 1.55 MB / 435.7 MB, free: 11.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.038/8.189, allocations: 14.23 kB / 435.7 MB, free: 11.62 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.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: 11.09469163895119]