Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 211.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.395/1.395, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 51.91 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2852, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003895/0.2891, allocations: 1.604 MB / 432.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.2902, allocations: 490.7 kB / 433.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.716e-05/0.2903, allocations: 0 / 433.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.69e-05/0.2904, allocations: 7.938 kB / 433.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.2905, allocations: 11.86 kB / 433.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.2908, allocations: 55.88 kB / 433.2 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.291, allocations: 63.78 kB / 433.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.2911, allocations: 11.98 kB / 433.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/0.2913, allocations: 39.84 kB / 433.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.806e-05/0.2914, allocations: 27.84 kB / 433.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.2914, allocations: 4 kB / 433.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.248e-05/0.2914, allocations: 12 kB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.961e-05/0.2915, allocations: 23.91 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.406e-05/0.2915, allocations: 19.88 kB / 433.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001839/0.2917, allocations: 73.39 kB / 433.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2917, allocations: 0 / 433.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2917, allocations: 7.875 kB / 433.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.2917, allocations: 0 / 433.5 MB, free: 4.215 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.000606/0.2923, allocations: 298.1 kB / 433.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.2924, allocations: 16.02 kB / 433.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.2924, allocations: 30.75 kB / 433.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002479/0.2927, allocations: 20.88 kB / 433.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.293, allocations: 138.4 kB / 434 MB, free: 3.66 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.0001194/0.2931, allocations: 38.25 kB / 434.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.302e-05/0.2931, allocations: 4.375 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004226/0.2936, allocations: 168.8 kB / 434.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.2936, allocations: 0 / 434.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.2936, allocations: 0 / 434.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.2936, allocations: 8 kB / 434.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001274/0.2937, allocations: 35.95 kB / 434.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001971/0.2939, allocations: 145.6 kB / 434.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.2942, allocations: 89.25 kB / 434.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.2943, allocations: 33.7 kB / 434.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.2943, allocations: 15.86 kB / 434.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.2944, allocations: 34.5 kB / 434.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.2944, allocations: 0 / 434.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.00034/0.2947, allocations: 117.5 kB / 434.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.2948, allocations: 85.36 kB / 434.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.2949, allocations: 128.4 kB / 434.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.2949, allocations: 29.7 kB / 434.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.295, allocations: 88.08 kB / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.295, allocations: 11.95 kB / 435 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.295, allocations: 21.7 kB / 435 MB, free: 2.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2952, allocations: 322.8 kB / 435.4 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.679e-05/0.2952, allocations: 8 kB / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.932e-05/0.2953, allocations: 70.12 kB / 435.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.2954, allocations: 77.86 kB / 435.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2955, allocations: 0 / 435.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001896/0.2956, allocations: 105.4 kB / 435.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2957, allocations: 8 kB / 435.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2957, allocations: 0 / 435.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.2957, allocations: 4 kB / 435.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.726e-05/0.2958, allocations: 23.92 kB / 435.7 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.2958, allocations: 3.984 kB / 435.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.185e-05/0.2958, allocations: 7.938 kB / 435.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.2958, allocations: 4.219 kB / 435.7 MB, free: 1.797 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 0.0001031/0.2959, allocations: 121.8 kB / 435.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.2961, allocations: 81.5 kB / 435.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.872e-05/0.2961, allocations: 8.375 kB / 435.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.2961, allocations: 4 kB / 435.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2961, allocations: 0 / 435.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2961, allocations: 0 / 435.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001305/0.2963, allocations: 136.7 kB / 436 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.2963, allocations: 7.938 kB / 436 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.358e-05/0.2963, allocations: 11.98 kB / 436 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2963, allocations: 192 / 436 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.2963, allocations: 8 kB / 436 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.2964, allocations: 7.938 kB / 436.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2964, allocations: 0 / 436.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002207/0.2966, allocations: 121.8 kB / 436.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.2966, allocations: 23.81 kB / 436.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.2966, allocations: 4 kB / 436.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.879e-05/0.2967, allocations: 0 / 436.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.2967, allocations: 8 kB / 436.2 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.2967, allocations: 8.109 kB / 436.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.103e-05/0.2968, allocations: 95.27 kB / 436.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2968, allocations: 4 kB / 436.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002057/0.297, allocations: 16 kB / 436.3 MB, free: 1.059 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.000642/0.2977, allocations: 0.699 MB / 437 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001891/0.2979, allocations: 51.91 kB / 437.1 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.2979, allocations: 4 kB / 437.1 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.616e-05/0.2979, allocations: 8.5 kB / 437.1 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007133/0.2986, allocations: 0.7205 MB / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.3001, allocations: 1.406 MB / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.465e-05/0.3002, allocations: 83.44 kB / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.3e-05/0.3002, allocations: 3.984 kB / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.118e-05/0.3003, allocations: 27.42 kB / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3003, allocations: 0 / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0282/0.3285, allocations: 2.528 MB / 441.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.37, allocations: 0 / 441.9 MB, free: 11.47 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 13.829862718936056]