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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008904/0.0008904, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008231/0.0008231, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9177/0.9177, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.382e-05/2.585e-05, allocations: 9.516 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002766/0.002792, allocations: 1.574 MB / 320 MB, free: 4.758 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006099/0.003402, allocations: 426.9 kB / 320.4 MB, free: 4.336 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.057e-05/0.003472, allocations: 0 / 320.4 MB, free: 4.336 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.071e-05/0.003503, allocations: 7.938 kB / 320.4 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.003665, allocations: 11.81 kB / 320.5 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001967/0.003862, allocations: 51.77 kB / 320.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.00399, allocations: 75.75 kB / 320.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.004094, allocations: 7.984 kB / 320.6 MB, free: 4.184 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.004218, allocations: 43.89 kB / 320.6 MB, free: 4.141 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.203e-05/0.00427, allocations: 27.91 kB / 320.7 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.004294, allocations: 4 kB / 320.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.798e-06/0.004303, allocations: 4 kB / 320.7 MB, free: 4.105 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.004336, allocations: 27.84 kB / 320.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.186e-05/0.004378, allocations: 11.98 kB / 320.7 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001418/0.00452, allocations: 63.78 kB / 320.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.004522, allocations: 4 kB / 320.8 MB, free: 4 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.004523, allocations: 0 / 320.8 MB, free: 4 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.00453, allocations: 4 kB / 320.8 MB, free: 3.996 MB / 282.7 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.000431/0.004961, allocations: 301.3 kB / 321.1 MB, free: 3.676 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.005005, allocations: 12.92 kB / 321.1 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.504e-05/0.00504, allocations: 34.75 kB / 321.1 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.00507, allocations: 8.891 kB / 321.1 MB, free: 3.613 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.005262, allocations: 137.7 kB / 321.3 MB, free: 3.453 MB / 282.7 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.0001056/0.005368, allocations: 38.25 kB / 321.3 MB, free: 3.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.005381, allocations: 8.312 kB / 321.3 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.005673, allocations: 161.5 kB / 321.5 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.005683, allocations: 192 / 321.5 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.005694, allocations: 3.938 kB / 321.5 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.005699, allocations: 4 kB / 321.5 MB, free: 3.219 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.474e-05/0.005784, allocations: 31.97 kB / 321.5 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001374/0.005921, allocations: 153.5 kB / 321.7 MB, free: 2.992 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.006138, allocations: 89.31 kB / 321.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.699e-05/0.006195, allocations: 29.7 kB / 321.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.006218, allocations: 11.94 kB / 321.8 MB, free: 2.84 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.006236, allocations: 30.56 kB / 321.8 MB, free: 2.801 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.006237, allocations: 0 / 321.8 MB, free: 2.801 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002403/0.006477, allocations: 117.5 kB / 321.9 MB, free: 2.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.006535, allocations: 89.05 kB / 322 MB, free: 2.574 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.597e-05/0.006611, allocations: 124.7 kB / 322.1 MB, free: 2.445 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.006623, allocations: 29.83 kB / 322.2 MB, free: 2.41 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.867e-05/0.006661, allocations: 92.14 kB / 322.3 MB, free: 2.316 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.00668, allocations: 3.953 kB / 322.3 MB, free: 2.312 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.006714, allocations: 21.7 kB / 322.3 MB, free: 2.285 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.5e-05/0.006799, allocations: 314.8 kB / 322.6 MB, free: 1.969 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.17e-05/0.00683, allocations: 19.92 kB / 322.6 MB, free: 1.949 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.368e-05/0.006864, allocations: 30.56 kB / 322.6 MB, free: 1.91 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.463e-05/0.006929, allocations: 46.5 kB / 322.7 MB, free: 1.855 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.006931, allocations: 0 / 322.7 MB, free: 1.855 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001012/0.007032, allocations: 69.58 kB / 322.7 MB, free: 1.781 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.007046, allocations: 10.97 kB / 322.8 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.007054, allocations: 7.922 kB / 322.8 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.007067, allocations: 0 / 322.8 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.449e-05/0.007122, allocations: 8 kB / 322.8 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.007127, allocations: 0 / 322.8 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.436e-05/0.007152, allocations: 8.469 kB / 322.8 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.007157, allocations: 4 kB / 322.8 MB, free: 1.746 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (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 7.788e-05/0.007235, allocations: 121.8 kB / 322.9 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.679e-05/0.007322, allocations: 77.64 kB / 323 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/0.007359, allocations: 12.38 kB / 323 MB, free: 1.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.007362, allocations: 3.984 kB / 323 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.007366, allocations: 4 kB / 323 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.007371, allocations: 3.984 kB / 323 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.948e-05/0.007461, allocations: 132.8 kB / 323.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.007462, allocations: 0 / 323.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.697e-05/0.007509, allocations: 11.98 kB / 323.1 MB, free: 1.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.007511, allocations: 8 kB / 323.2 MB, free: 1.316 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.00752, allocations: 3.938 kB / 323.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.007522, allocations: 0 / 323.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.007523, allocations: 3.938 kB / 323.2 MB, free: 1.309 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.00766, allocations: 121.9 kB / 323.3 MB, free: 1.168 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.007693, allocations: 15.94 kB / 323.3 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.00771, allocations: 3.938 kB / 323.3 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.993e-05/0.00774, allocations: 8 kB / 323.3 MB, free: 1.141 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.797e-05/0.007768, allocations: 3.984 kB / 323.3 MB, free: 1.137 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.007776, allocations: 8 kB / 323.3 MB, free: 1.129 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.161e-05/0.007817, allocations: 99.2 kB / 323.4 MB, free: 1.031 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007817, allocations: 3.938 kB / 323.4 MB, free: 1.027 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001505/0.007968, allocations: 12 kB / 323.4 MB, free: 1.016 MB / 282.7 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.0004337/0.008402, allocations: 0.6913 MB / 324.1 MB, free: 300 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001305/0.008532, allocations: 51.84 kB / 324.2 MB, free: 248 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.008534, allocations: 256 / 324.2 MB, free: 248 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.857e-05/0.008552, allocations: 12 kB / 324.2 MB, free: 236 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.009038, allocations: 0.7103 MB / 324.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009408/0.009979, allocations: 1.318 MB / 326.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.21e-05/0.01003, allocations: 83.45 kB / 326.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.984e-05/0.01006, allocations: 0 / 326.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.01011, allocations: 24.48 kB / 326.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01011, allocations: 0 / 326.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.02973, allocations: 2.593 MB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.817/6.846, allocations: 10.61 kB / 328.9 MB, free: 11.48 MB / 298.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,sine.y,sineRef.y,periodicClock1.period [Calling sys.exit(0), Time elapsed: 8.738738108426332]