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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 111 kB / 17.06 MB, free: 5.965 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.00133/0.00133, allocations: 198.9 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 2.133/2.133, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 51.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5/0.5018, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.005101/0.507, allocations: 1.581 MB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.5082, allocations: 451.1 kB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.5084, allocations: 0 / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.445e-05/0.5085, allocations: 7.875 kB / 402.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.5087, allocations: 11.88 kB / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/0.509, allocations: 41.94 kB / 402.3 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001731/0.5092, allocations: 71.75 kB / 402.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.5094, allocations: 12 kB / 402.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.5095, allocations: 39.86 kB / 402.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.869e-05/0.5096, allocations: 35.83 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.178e-05/0.5097, allocations: 4 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.836e-05/0.5097, allocations: 4 kB / 402.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.922e-05/0.5097, allocations: 15.92 kB / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.64e-05/0.5098, allocations: 31.8 kB / 402.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001812/0.51, allocations: 55.78 kB / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.51, allocations: 0 / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.51, allocations: 4 kB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.5101, allocations: 0 / 402.6 MB, free: 6.441 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.0007803/0.5108, allocations: 373 kB / 403 MB, free: 6.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.346e-05/0.5109, allocations: 12.03 kB / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.726e-05/0.511, allocations: 34.75 kB / 403 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.037e-05/0.511, allocations: 8.844 kB / 403 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004453/0.5115, allocations: 200 kB / 403.2 MB, free: 5.734 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.0001818/0.5117, allocations: 42.27 kB / 403.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.5117, allocations: 4.375 kB / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.5122, allocations: 168.8 kB / 403.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.5123, allocations: 0 / 403.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.5123, allocations: 0 / 403.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.5123, allocations: 7.875 kB / 403.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.5125, allocations: 39.97 kB / 403.5 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003085/0.5128, allocations: 178.5 kB / 403.6 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004047/0.5132, allocations: 166.4 kB / 403.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.5134, allocations: 45.7 kB / 403.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.5134, allocations: 3.938 kB / 403.9 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.5134, allocations: 30.56 kB / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.5134, allocations: 0 / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004057/0.5139, allocations: 117.5 kB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.514, allocations: 89.23 kB / 404.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.5141, allocations: 120.1 kB / 404.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.5142, allocations: 29.7 kB / 404.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.5143, allocations: 92.12 kB / 404.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.528e-05/0.5143, allocations: 3.906 kB / 404.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.5144, allocations: 33.64 kB / 404.4 MB, free: 4.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.5145, allocations: 310.8 kB / 404.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.477e-05/0.5146, allocations: 15.98 kB / 404.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.525e-05/0.5147, allocations: 66 kB / 404.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/0.5149, allocations: 77.88 kB / 404.8 MB, free: 3.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.5149, allocations: 0 / 404.8 MB, free: 3.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002197/0.5151, allocations: 101.4 kB / 404.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.5151, allocations: 8.219 kB / 404.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.5151, allocations: 8.234 kB / 404.9 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.5152, allocations: 0 / 404.9 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.638e-05/0.5153, allocations: 16 kB / 404.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.5153, allocations: 7.938 kB / 405 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.371e-05/0.5154, allocations: 12.17 kB / 405 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.5154, allocations: 4 kB / 405 MB, free: 3.738 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 0.0001383/0.5155, allocations: 121.7 kB / 405.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.5157, allocations: 77.52 kB / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.851e-05/0.5158, allocations: 24.3 kB / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.5158, allocations: 0 / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.5158, allocations: 3.938 kB / 405.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.5158, allocations: 0 / 405.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.516, allocations: 173.6 kB / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.516, allocations: 3.938 kB / 405.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.673e-05/0.5161, allocations: 11.98 kB / 405.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.5161, allocations: 0 / 405.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.5162, allocations: 8 kB / 405.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.5162, allocations: 0 / 405.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5162, allocations: 4 kB / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/0.5164, allocations: 117.9 kB / 405.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.378e-05/0.5165, allocations: 96.94 kB / 405.6 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/0.5166, allocations: 0 / 405.6 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.947e-05/0.5166, allocations: 7.938 kB / 405.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.5167, allocations: 8 kB / 405.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.5167, allocations: 7.984 kB / 405.6 MB, free: 2.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.388e-05/0.5168, allocations: 95.27 kB / 405.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5168, allocations: 0 / 405.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.517, allocations: 12 kB / 405.7 MB, free: 2.875 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.0007969/0.5178, allocations: 0.699 MB / 406.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002318/0.5181, allocations: 56.03 kB / 406.5 MB, free: 2.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.5181, allocations: 0 / 406.5 MB, free: 2.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.069e-05/0.5181, allocations: 12 kB / 406.5 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007967/0.5189, allocations: 0.7366 MB / 407.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.5208, allocations: 1.398 MB / 408.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.5212, allocations: 0.6924 MB / 409.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.385e-05/0.5213, allocations: 7.984 kB / 409.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.484e-05/0.5214, allocations: 19.44 kB / 409.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5214, allocations: 0 / 409.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.5477, allocations: 1.963 MB / 411.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.77, allocations: 12.16 kB / 411.3 MB, free: 13.2 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/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