Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 111.6 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 51.92 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.414, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002964/0.417, allocations: 1.596 MB / 402.3 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007865/0.4178, allocations: 434.9 kB / 402.7 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.669e-05/0.4179, allocations: 4 kB / 402.8 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.468e-05/0.4179, allocations: 11.86 kB / 402.8 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.4181, allocations: 19.86 kB / 402.8 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002075/0.4184, allocations: 35.95 kB / 402.8 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.4185, allocations: 63.78 kB / 402.9 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.4186, allocations: 15.98 kB / 402.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.4187, allocations: 31.84 kB / 402.9 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.432e-05/0.4188, allocations: 31.84 kB / 403 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.4188, allocations: 8 kB / 403 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.42e-05/0.4189, allocations: 4 kB / 403 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.232e-05/0.4189, allocations: 23.92 kB / 403 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.027e-05/0.419, allocations: 27.8 kB / 403 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.4191, allocations: 63.78 kB / 403.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.4191, allocations: 0 / 403.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4191, allocations: 0 / 403.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.4191, allocations: 0 / 403.1 MB, free: 6.496 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007056/0.4198, allocations: 368.4 kB / 403.4 MB, free: 6.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.4199, allocations: 8.031 kB / 403.4 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.199e-05/0.4199, allocations: 8.844 kB / 403.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.4203, allocations: 196.1 kB / 403.6 MB, free: 5.848 MB / 318.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.4205, allocations: 46.25 kB / 403.7 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.4205, allocations: 4.375 kB / 403.7 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.421, allocations: 172.9 kB / 403.9 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.421, allocations: 4 kB / 403.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.421, allocations: 3.938 kB / 403.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.421, allocations: 0 / 403.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.4212, allocations: 35.97 kB / 403.9 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001927/0.4214, allocations: 182.5 kB / 404.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.4217, allocations: 174.3 kB / 404.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.671e-05/0.4218, allocations: 41.7 kB / 404.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.4218, allocations: 0 / 404.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.4219, allocations: 34.5 kB / 404.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.4219, allocations: 0 / 404.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003293/0.4222, allocations: 117.5 kB / 404.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.659e-05/0.4223, allocations: 85.11 kB / 404.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.926e-05/0.4224, allocations: 124 kB / 404.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.4224, allocations: 25.7 kB / 404.7 MB, free: 4.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.4225, allocations: 92.14 kB / 404.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.4225, allocations: 15.81 kB / 404.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/0.4225, allocations: 21.72 kB / 404.8 MB, free: 4.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4227, allocations: 323 kB / 405.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.107e-05/0.4227, allocations: 12 kB / 405.1 MB, free: 4.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.4229, allocations: 58 kB / 405.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.423, allocations: 85.86 kB / 405.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.423, allocations: 0 / 405.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001672/0.4232, allocations: 105.4 kB / 405.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.4232, allocations: 4 kB / 405.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4232, allocations: 4 kB / 405.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.4233, allocations: 0 / 405.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.738e-05/0.4233, allocations: 15.98 kB / 405.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.4234, allocations: 7.938 kB / 405.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.851e-05/0.4234, allocations: 4 kB / 405.4 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.4234, allocations: 8 kB / 405.4 MB, free: 3.844 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 8.834e-05/0.4235, allocations: 122.2 kB / 405.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.4237, allocations: 81.45 kB / 405.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/0.4237, allocations: 12.38 kB / 405.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.4237, allocations: 4.25 kB / 405.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.4237, allocations: 0 / 405.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.4237, allocations: 3.938 kB / 405.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.4239, allocations: 177.6 kB / 405.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4239, allocations: 0 / 405.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.443e-05/0.424, allocations: 15.92 kB / 405.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.424, allocations: 0 / 405.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.424, allocations: 15.98 kB / 405.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.424, allocations: 0 / 405.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.424, allocations: 0 / 405.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/0.4243, allocations: 117.9 kB / 406 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.417e-05/0.4243, allocations: 92.94 kB / 406 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.4244, allocations: 7.938 kB / 406.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.423e-05/0.4244, allocations: 11.98 kB / 406.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.4245, allocations: 0 / 406.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.4245, allocations: 8 kB / 406.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.208e-05/0.4246, allocations: 101.6 kB / 406.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4246, allocations: 0 / 406.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002056/0.4248, allocations: 12 kB / 406.2 MB, free: 2.973 MB / 318.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: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.000116/0.4249, allocations: 108 kB / 406.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000197/0.4251, allocations: 55.92 kB / 406.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4251, allocations: 0 / 406.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.729e-05/0.4252, allocations: 7.984 kB / 406.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006973/0.4259, allocations: 0.7219 MB / 407.1 MB, free: 2.051 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004047/0.4263, allocations: 172.1 kB / 407.2 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.4266, allocations: 0.7039 MB / 407.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.19e-05/0.4266, allocations: 0 / 407.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.765e-05/0.4267, allocations: 11.44 kB / 408 MB, free: 1.113 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4267, allocations: 0 / 408 MB, free: 1.113 MB / 318.1 MB Notification: Performance of Templates: time 0.00385/0.4305, allocations: 0.7665 MB / 408.7 MB, free: 360 kB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches