Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 112.9 kB / 17.82 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 208.6 kB / 18.79 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.503/1.503, allocations: 230.4 MB / 250 MB, free: 9.098 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 63.83 kB / 367.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.4013, allocations: 53.31 MB / 420.7 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.003579/0.4049, allocations: 1.597 MB / 422.3 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00116/0.4061, allocations: 0.5259 MB / 422.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.783e-05/0.4062, allocations: 7.938 kB / 422.8 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.827e-05/0.4062, allocations: 7.922 kB / 422.8 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.4064, allocations: 11.94 kB / 422.8 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.4068, allocations: 51.81 kB / 422.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.407, allocations: 47.78 kB / 422.9 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.4071, allocations: 19.98 kB / 422.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.4073, allocations: 19.94 kB / 422.9 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.155e-05/0.4073, allocations: 27.84 kB / 423 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.4074, allocations: 0 / 423 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.072e-05/0.4074, allocations: 11.98 kB / 423 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.708e-05/0.4075, allocations: 11.94 kB / 423 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.715e-05/0.4075, allocations: 27.8 kB / 423 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.4077, allocations: 59.69 kB / 423.1 MB, free: 6.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.4078, allocations: 0 / 423.1 MB, free: 6.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.459e-06/0.4078, allocations: 3.984 kB / 423.1 MB, free: 6.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.4078, allocations: 0 / 423.1 MB, free: 6.043 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007382/0.4085, allocations: 383.1 kB / 423.5 MB, free: 5.621 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.4086, allocations: 8.031 kB / 423.5 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.4088, allocations: 20.88 kB / 423.5 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.4091, allocations: 199.1 kB / 423.7 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.4091, allocations: 4.375 kB / 423.7 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.4091, allocations: 4.375 kB / 423.7 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.4095, allocations: 125.2 kB / 423.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.4095, allocations: 4 kB / 423.8 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.4095, allocations: 0 / 423.8 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.4095, allocations: 4 kB / 423.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.875e-05/0.4096, allocations: 19.98 kB / 423.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004221/0.4101, allocations: 269.7 kB / 424.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.4103, allocations: 138.3 kB / 424.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.717e-05/0.4104, allocations: 29.77 kB / 424.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.4104, allocations: 11.86 kB / 424.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.4104, allocations: 34.56 kB / 424.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.302e-06/0.4104, allocations: 0 / 424.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003004/0.4107, allocations: 85.56 kB / 424.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.398e-05/0.4108, allocations: 77.11 kB / 424.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.411, allocations: 142.1 kB / 424.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.411, allocations: 25.7 kB / 424.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.032e-05/0.4111, allocations: 84.14 kB / 424.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.4111, allocations: 15.89 kB / 424.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.4111, allocations: 17.7 kB / 424.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.4113, allocations: 319 kB / 425.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.737e-05/0.4113, allocations: 15.92 kB / 425.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.127e-05/0.4114, allocations: 31.42 kB / 425.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.4115, allocations: 55.3 kB / 425.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4115, allocations: 0 / 425.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000148/0.4116, allocations: 73.52 kB / 425.2 MB, free: 3.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.4117, allocations: 4 kB / 425.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.4117, allocations: 4 kB / 425.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.4117, allocations: 0 / 425.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.398e-05/0.4118, allocations: 16.11 kB / 425.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.4118, allocations: 0 / 425.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.244e-05/0.4118, allocations: 4 kB / 425.3 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.4118, allocations: 0 / 425.3 MB, free: 3.566 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001182/0.412, allocations: 125.8 kB / 425.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.402e-05/0.412, allocations: 49.59 kB / 425.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.153e-05/0.4121, allocations: 12.23 kB / 425.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.4121, allocations: 4 kB / 425.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4121, allocations: 0 / 425.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.4121, allocations: 4 kB / 425.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/0.4123, allocations: 173.6 kB / 425.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.4123, allocations: 4 kB / 425.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.157e-05/0.4124, allocations: 7.984 kB / 425.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.4124, allocations: 4 kB / 425.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.4124, allocations: 0 / 425.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.4124, allocations: 0 / 425.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4124, allocations: 0 / 425.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002059/0.4126, allocations: 180.2 kB / 425.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.667e-05/0.4127, allocations: 89.05 kB / 425.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.4127, allocations: 4 kB / 425.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.114e-05/0.4127, allocations: 0 / 425.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.4128, allocations: 7.984 kB / 425.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-06/0.4128, allocations: 4 kB / 425.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.768e-05/0.4129, allocations: 109.8 kB / 426 MB, free: 2.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4129, allocations: 0 / 426 MB, free: 2.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002204/0.4131, allocations: 12 kB / 426 MB, free: 2.68 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0001273/0.4132, allocations: 99.23 kB / 426.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.4134, allocations: 27.92 kB / 426.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4134, allocations: 3.938 kB / 426.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.14e-05/0.4134, allocations: 15.98 kB / 426.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.4138, allocations: 27.22 kB / 426.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003849/0.4142, allocations: 175.5 kB / 426.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.4145, allocations: 0.6924 MB / 427.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.006e-05/0.4145, allocations: 7.984 kB / 427.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/0.4146, allocations: 7.438 kB / 427.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4146, allocations: 4 kB / 427.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of Templates: time 0.003749/0.4183, allocations: 0.5332 MB / 427.6 MB, free: 1.039 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches