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.001737/0.001737, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.002049/0.002049, allocations: 192.1 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.421/1.421, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001554/0.001554, allocations: 51.86 kB / 370.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.261, allocations: 52.16 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003158/0.2642, allocations: 1.602 MB / 424.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008387/0.265, allocations: 419.1 kB / 424.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.807e-05/0.2651, allocations: 0 / 424.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.325e-05/0.2651, allocations: 7.875 kB / 424.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.2653, allocations: 15.88 kB / 424.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.2655, allocations: 31.95 kB / 424.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.2657, allocations: 71.81 kB / 424.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.2658, allocations: 7.938 kB / 424.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.2659, allocations: 39.8 kB / 424.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.87e-05/0.266, allocations: 35.83 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.188e-05/0.266, allocations: 4 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.858e-05/0.266, allocations: 4 kB / 424.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.021e-05/0.266, allocations: 19.92 kB / 424.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.285e-05/0.2661, allocations: 11.94 kB / 424.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.2662, allocations: 69.34 kB / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2662, allocations: 0 / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.2662, allocations: 0 / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2662, allocations: 0 / 424.9 MB, free: 12.06 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.0005978/0.2668, allocations: 306 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.2669, allocations: 12.03 kB / 425.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.628e-05/0.2669, allocations: 38.73 kB / 425.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.267, allocations: 12.83 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.2672, allocations: 138.4 kB / 425.4 MB, free: 11.5 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.0001186/0.2674, allocations: 34.25 kB / 425.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.887e-05/0.2674, allocations: 8.375 kB / 425.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.2678, allocations: 168.8 kB / 425.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.2678, allocations: 0 / 425.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.2678, allocations: 4 kB / 425.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.2678, allocations: 4 kB / 425.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.268, allocations: 27.97 kB / 425.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001997/0.2682, allocations: 149.6 kB / 425.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002671/0.2684, allocations: 85.25 kB / 425.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.114e-05/0.2685, allocations: 37.7 kB / 425.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.2685, allocations: 11.94 kB / 425.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.2686, allocations: 38.56 kB / 425.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.2686, allocations: 0 / 425.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003516/0.2689, allocations: 117.5 kB / 426.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.216e-05/0.269, allocations: 85.09 kB / 426.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.2691, allocations: 128 kB / 426.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.2691, allocations: 29.64 kB / 426.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.746e-05/0.2692, allocations: 92.12 kB / 426.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.2692, allocations: 7.953 kB / 426.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/0.2692, allocations: 25.84 kB / 426.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2694, allocations: 318.8 kB / 426.7 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.325e-05/0.2694, allocations: 19.98 kB / 426.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.741e-05/0.2695, allocations: 54 kB / 426.8 MB, free: 9.902 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.2697, allocations: 81.88 kB / 426.9 MB, free: 9.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2697, allocations: 0 / 426.9 MB, free: 9.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001804/0.2698, allocations: 105.4 kB / 427 MB, free: 9.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2698, allocations: 6.812 kB / 427 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2699, allocations: 4 kB / 427 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.2699, allocations: 0 / 427 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.236e-05/0.27, allocations: 28.14 kB / 427 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.27, allocations: 4 kB / 427 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.827e-05/0.27, allocations: 4 kB / 427 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.27, allocations: 4 kB / 427 MB, free: 9.645 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.754e-05/0.2701, allocations: 117.8 kB / 427.2 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.2703, allocations: 81.52 kB / 427.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.808e-05/0.2703, allocations: 8.375 kB / 427.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.2703, allocations: 0 / 427.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2703, allocations: 0 / 427.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.2703, allocations: 3.984 kB / 427.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.2704, allocations: 144.7 kB / 427.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2704, allocations: 3.938 kB / 427.4 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.93e-05/0.2705, allocations: 11.98 kB / 427.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2705, allocations: 0 / 427.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.2705, allocations: 11.94 kB / 427.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2705, allocations: 320 / 427.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2705, allocations: 0 / 427.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002265/0.2707, allocations: 121.9 kB / 427.5 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.136e-05/0.2708, allocations: 19.88 kB / 427.6 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.2708, allocations: 4.188 kB / 427.6 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.383e-05/0.2709, allocations: 8 kB / 427.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.203e-05/0.2709, allocations: 11.92 kB / 427.6 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.2709, allocations: 4 kB / 427.6 MB, free: 9.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.545e-05/0.271, allocations: 95.27 kB / 427.7 MB, free: 8.926 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.271, allocations: 0 / 427.7 MB, free: 8.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002013/0.2712, allocations: 12 kB / 427.7 MB, free: 8.914 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.0006689/0.2719, allocations: 0.7029 MB / 428.4 MB, free: 8.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001844/0.272, allocations: 55.97 kB / 428.4 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.272, allocations: 0 / 428.4 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.675e-05/0.2721, allocations: 8 kB / 428.5 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006885/0.2728, allocations: 0.718 MB / 429.2 MB, free: 7.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.2742, allocations: 1.407 MB / 430.6 MB, free: 5.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.932e-05/0.2743, allocations: 83.52 kB / 430.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.354e-05/0.2743, allocations: 7.734 kB / 430.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.294e-05/0.2744, allocations: 19.44 kB / 430.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2744, allocations: 0 / 430.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02775/0.3021, allocations: 2.489 MB / 433.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.22, allocations: 6.172 kB / 433.2 MB, free: 3.359 MB / 334.1 MB " [Timeout remaining time 649] (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/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) [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.777650088071823]