Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001819/0.001819, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002245/0.002245, allocations: 212.5 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 230.5 MB / 257.4 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.91 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2849, allocations: 53.4 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003156/0.2881, allocations: 1.615 MB / 432.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.2891, allocations: 0.5298 MB / 433.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.215e-05/0.2892, allocations: 0 / 433.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.368e-05/0.2892, allocations: 3.938 kB / 433.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.2893, allocations: 15.81 kB / 433.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.2897, allocations: 59.86 kB / 433.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.2898, allocations: 63.78 kB / 433.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.455e-05/0.2899, allocations: 11.98 kB / 433.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.29, allocations: 43.84 kB / 433.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.058e-05/0.2901, allocations: 31.84 kB / 433.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.749e-05/0.2901, allocations: 4 kB / 433.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.256e-05/0.2902, allocations: 12 kB / 433.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.763e-05/0.2902, allocations: 19.91 kB / 433.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.357e-05/0.2902, allocations: 23.86 kB / 433.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002007/0.2904, allocations: 76.02 kB / 433.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2904, allocations: 0 / 433.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2904, allocations: 4 kB / 433.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.2905, allocations: 4 kB / 433.7 MB, free: 4.172 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005244/0.291, allocations: 298 kB / 434 MB, free: 3.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.291, allocations: 8.031 kB / 434 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.128e-05/0.2911, allocations: 38.75 kB / 434 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002474/0.2913, allocations: 20.88 kB / 434.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.2915, allocations: 130.4 kB / 434.2 MB, free: 3.625 MB / 334.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.0001045/0.2916, allocations: 40.92 kB / 434.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.2917, allocations: 4.375 kB / 434.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003747/0.292, allocations: 176.7 kB / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.292, allocations: 4 kB / 434.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.2921, allocations: 0 / 434.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.2921, allocations: 0 / 434.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.2922, allocations: 39.97 kB / 434.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001722/0.2924, allocations: 149.6 kB / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.2926, allocations: 89.25 kB / 434.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.369e-05/0.2927, allocations: 41.69 kB / 434.7 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.2927, allocations: 7.938 kB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.2928, allocations: 34.5 kB / 434.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.2928, allocations: 0 / 434.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003968/0.2932, allocations: 121.5 kB / 434.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.2932, allocations: 85.17 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.2933, allocations: 129.1 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.2934, allocations: 25.7 kB / 435.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.943e-05/0.2934, allocations: 92.12 kB / 435.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.2934, allocations: 7.953 kB / 435.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.2935, allocations: 25.7 kB / 435.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2936, allocations: 314.8 kB / 435.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-05/0.2937, allocations: 19.98 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.2938, allocations: 58 kB / 435.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.2939, allocations: 77.88 kB / 435.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2939, allocations: 0 / 435.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001805/0.2941, allocations: 109.4 kB / 435.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.2941, allocations: 8.219 kB / 435.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2941, allocations: 4 kB / 435.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.2941, allocations: 4 kB / 435.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.895e-05/0.2942, allocations: 15.94 kB / 435.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.2942, allocations: 0 / 435.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.658e-05/0.2942, allocations: 11.92 kB / 435.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.836e-06/0.2943, allocations: 4 kB / 435.8 MB, free: 1.754 MB / 334.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 9.443e-05/0.2944, allocations: 122.2 kB / 436 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.2945, allocations: 81.58 kB / 436 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.2946, allocations: 20.36 kB / 436.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2946, allocations: 0 / 436.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2946, allocations: 4 kB / 436.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2946, allocations: 0 / 436.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.2947, allocations: 140.7 kB / 436.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2947, allocations: 3.938 kB / 436.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.381e-05/0.2948, allocations: 11.98 kB / 436.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2948, allocations: 4 kB / 436.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.2948, allocations: 0 / 436.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2948, allocations: 3.938 kB / 436.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2948, allocations: 0 / 436.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.295, allocations: 129.8 kB / 436.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.857e-05/0.2951, allocations: 19.88 kB / 436.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.2951, allocations: 4 kB / 436.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.801e-05/0.2951, allocations: 4 kB / 436.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.2952, allocations: 3.984 kB / 436.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.2952, allocations: 8 kB / 436.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.774e-05/0.2953, allocations: 99.27 kB / 436.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2953, allocations: 0 / 436.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002052/0.2955, allocations: 8 kB / 436.5 MB, free: 1.016 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: 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.0006644/0.2962, allocations: 0.7029 MB / 437.2 MB, free: 288 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001816/0.2963, allocations: 51.91 kB / 437.3 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2963, allocations: 0 / 437.3 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.558e-05/0.2964, allocations: 8 kB / 437.3 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007555/0.2971, allocations: 0.7302 MB / 438 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.2987, allocations: 1.404 MB / 439.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.299, allocations: 0.6964 MB / 440.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.858e-05/0.299, allocations: 3.938 kB / 440.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.877e-05/0.2991, allocations: 23.42 kB / 440.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2991, allocations: 0 / 440.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0307/0.3298, allocations: 2.123 MB / 442.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.58, allocations: 2.812 kB / 442.2 MB, free: 11.18 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 14.253722305998963]