Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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 trunk/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009572/0.0009573, allocations: 94.77 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001018/0.001018, allocations: 203.8 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.7 MB / 247.5 MB, free: 11.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002576/0.0002577, allocations: 8 kB / 308.4 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.09825, allocations: 51.52 MB / 359.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.001798/0.1001, allocations: 1.223 MB / 361.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008532/0.101, allocations: 463 kB / 361.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.262e-05/0.1011, allocations: 4 kB / 361.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.463e-05/0.1011, allocations: 3.938 kB / 361.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.74e-05/0.1012, allocations: 11.88 kB / 361.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002644/0.1015, allocations: 27.97 kB / 361.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.28e-05/0.1015, allocations: 35.86 kB / 361.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.305e-05/0.1016, allocations: 7.984 kB / 361.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1018, allocations: 15.94 kB / 361.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.902e-05/0.1018, allocations: 23.91 kB / 361.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.1019, allocations: 0 / 361.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.379e-05/0.1019, allocations: 4 kB / 361.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.1019, allocations: 3.938 kB / 361.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.362e-05/0.102, allocations: 45.62 kB / 361.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.226e-05/0.1021, allocations: 27.95 kB / 361.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1021, allocations: 0 / 361.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.257e-06/0.1021, allocations: 0 / 361.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.1021, allocations: 3.938 kB / 361.8 MB, free: 11.35 MB / 302.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.0004279/0.1025, allocations: 351.6 kB / 362.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1026, allocations: 8.031 kB / 362.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.1028, allocations: 20.92 kB / 362.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/0.1029, allocations: 180.2 kB / 362.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-06/0.103, allocations: 4.375 kB / 362.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.103, allocations: 4.375 kB / 362.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003437/0.1033, allocations: 127.6 kB / 362.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1033, allocations: 3.984 kB / 362.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1034, allocations: 0 / 362.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1034, allocations: 3.938 kB / 362.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.35e-05/0.1035, allocations: 27.92 kB / 362.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.1036, allocations: 157.7 kB / 362.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.1038, allocations: 66.55 kB / 362.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.995e-05/0.1039, allocations: 28.92 kB / 362.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.1039, allocations: 0 / 362.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.1039, allocations: 38.5 kB / 362.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.1039, allocations: 4 kB / 362.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002468/0.1042, allocations: 81.52 kB / 362.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.1042, allocations: 59.39 kB / 362.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.339e-05/0.1043, allocations: 109.8 kB / 363.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.1044, allocations: 25.7 kB / 363.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/0.1044, allocations: 84.14 kB / 363.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.728e-06/0.1044, allocations: 8 kB / 363.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.1044, allocations: 13.72 kB / 363.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1046, allocations: 314.8 kB / 363.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.111e-05/0.1046, allocations: 4 kB / 363.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.891e-05/0.1046, allocations: 31.44 kB / 363.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.234e-05/0.1047, allocations: 35.38 kB / 363.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1047, allocations: 4 kB / 363.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.253e-05/0.1048, allocations: 57.56 kB / 363.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1048, allocations: 7.938 kB / 363.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1048, allocations: 0 / 363.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.1048, allocations: 4 kB / 363.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.934e-05/0.1049, allocations: 12.06 kB / 363.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.1049, allocations: 3.984 kB / 363.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.34e-05/0.1049, allocations: 7.906 kB / 363.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-06/0.1049, allocations: 0 / 363.7 MB, free: 9.25 MB / 302.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 7.488e-05/0.105, allocations: 113.8 kB / 363.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.1051, allocations: 65.56 kB / 363.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.035e-05/0.1052, allocations: 11.89 kB / 363.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1052, allocations: 4 kB / 363.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.1052, allocations: 384 / 363.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1052, allocations: 4 kB / 363.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.778e-05/0.1053, allocations: 157.7 kB / 364 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1053, allocations: 4 kB / 364 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.975e-05/0.1054, allocations: 12.27 kB / 364 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1054, allocations: 3.938 kB / 364 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.1054, allocations: 4 kB / 364 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1054, allocations: 0 / 364 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1054, allocations: 0 / 364 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.1056, allocations: 104.9 kB / 364.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.1056, allocations: 85.03 kB / 364.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.1056, allocations: 0 / 364.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.297e-05/0.1057, allocations: 4 kB / 364.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-06/0.1057, allocations: 0 / 364.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.1057, allocations: 4 kB / 364.2 MB, free: 8.574 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.727e-05/0.1058, allocations: 91.27 kB / 364.3 MB, free: 8.484 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1058, allocations: 0 / 364.3 MB, free: 8.484 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001916/0.106, allocations: 8 kB / 364.3 MB, free: 8.477 MB / 302.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: 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.0001045/0.1061, allocations: 106.8 kB / 364.4 MB, free: 8.367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.1062, allocations: 31.92 kB / 364.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1062, allocations: 0 / 364.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.1062, allocations: 4.25 kB / 364.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.1065, allocations: 24.02 kB / 364.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000284/0.1068, allocations: 182.2 kB / 364.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.107, allocations: 0.6809 MB / 365.3 MB, free: 7.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.099e-05/0.107, allocations: 7.438 kB / 365.3 MB, free: 7.383 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.107, allocations: 4 kB / 365.3 MB, free: 7.379 MB / 302.1 MB Notification: Performance of Templates: time 0.001957/0.109, allocations: 0.5668 MB / 365.9 MB, free: 6.812 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches