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.001801/0.001801, allocations: 112 kB / 20.43 MB, free: 1.449 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.001513/0.001513, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.494/1.494, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.001522/0.001522, allocations: 51.92 kB / 370.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2558, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002858/0.2587, allocations: 1.611 MB / 424.2 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000807/0.2595, allocations: 446.9 kB / 424.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.39e-05/0.2596, allocations: 4 kB / 424.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.537e-05/0.2596, allocations: 7.875 kB / 424.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.2598, allocations: 19.86 kB / 424.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.26, allocations: 39.33 kB / 424.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.2601, allocations: 67.77 kB / 424.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.158e-05/0.2602, allocations: 4 kB / 424.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.2603, allocations: 39.84 kB / 424.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.045e-05/0.2604, allocations: 35.84 kB / 424.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.2604, allocations: 4 kB / 424.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.798e-05/0.2604, allocations: 8 kB / 424.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.794e-05/0.2605, allocations: 15.92 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.022e-05/0.2605, allocations: 31.8 kB / 425 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.2606, allocations: 60.14 kB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2606, allocations: 0 / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2606, allocations: 4 kB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.2606, allocations: 0 / 425 MB, free: 12.23 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.000507/0.2612, allocations: 306 kB / 425.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2612, allocations: 8.031 kB / 425.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.181e-05/0.2612, allocations: 30.75 kB / 425.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.285e-05/0.2613, allocations: 12.83 kB / 425.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.2615, allocations: 146.3 kB / 425.5 MB, free: 11.68 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.0001033/0.2616, allocations: 34.27 kB / 425.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.2616, allocations: 4.375 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/0.262, allocations: 168.9 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.262, allocations: 0 / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.262, allocations: 3.984 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.262, allocations: 4 kB / 425.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.2621, allocations: 39.84 kB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001857/0.2623, allocations: 153.5 kB / 425.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000262/0.2626, allocations: 93.25 kB / 426 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.737e-05/0.2627, allocations: 37.7 kB / 426 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.2627, allocations: 3.938 kB / 426 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.2627, allocations: 38.56 kB / 426.1 MB, free: 11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.2627, allocations: 0 / 426.1 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003457/0.2631, allocations: 113.5 kB / 426.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.903e-05/0.2632, allocations: 85.09 kB / 426.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.2633, allocations: 117.8 kB / 426.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.2633, allocations: 33.7 kB / 426.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.844e-05/0.2633, allocations: 88.25 kB / 426.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.2634, allocations: 15.95 kB / 426.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.2634, allocations: 21.66 kB / 426.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.2635, allocations: 322.8 kB / 426.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.466e-05/0.2636, allocations: 11.98 kB / 426.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.826e-05/0.2637, allocations: 58 kB / 426.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001295/0.2638, allocations: 81.88 kB / 427 MB, free: 9.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2638, allocations: 192 / 427 MB, free: 9.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001847/0.264, allocations: 101.4 kB / 427.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.264, allocations: 11.94 kB / 427.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.264, allocations: 0 / 427.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.264, allocations: 4 kB / 427.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.723e-05/0.2641, allocations: 19.98 kB / 427.1 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.2641, allocations: 8.156 kB / 427.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.025e-05/0.2642, allocations: 4.25 kB / 427.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.2642, allocations: 8 kB / 427.2 MB, free: 9.812 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.0001003/0.2643, allocations: 117.8 kB / 427.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.2644, allocations: 73.58 kB / 427.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/0.2644, allocations: 12.38 kB / 427.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2644, allocations: 3.938 kB / 427.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.2644, allocations: 7.984 kB / 427.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2645, allocations: 3.938 kB / 427.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.2646, allocations: 152.7 kB / 427.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2646, allocations: 3.938 kB / 427.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.353e-05/0.2647, allocations: 11.98 kB / 427.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.2647, allocations: 4 kB / 427.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.2647, allocations: 0 / 427.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2647, allocations: 0 / 427.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2647, allocations: 0 / 427.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000225/0.2649, allocations: 121.9 kB / 427.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.055e-05/0.265, allocations: 15.89 kB / 427.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.775e-05/0.265, allocations: 11.98 kB / 427.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.677e-05/0.265, allocations: 4 kB / 427.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.707e-05/0.2651, allocations: 3.938 kB / 427.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.2651, allocations: 4 kB / 427.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.354e-05/0.2651, allocations: 95.25 kB / 427.8 MB, free: 9.094 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2651, allocations: 0 / 427.8 MB, free: 9.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000207/0.2654, allocations: 16 kB / 427.8 MB, free: 9.078 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.000652/0.266, allocations: 0.6951 MB / 428.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000191/0.2662, allocations: 60.11 kB / 428.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2662, allocations: 0 / 428.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.566e-05/0.2662, allocations: 11.98 kB / 428.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007224/0.267, allocations: 0.7179 MB / 429.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.2684, allocations: 1.409 MB / 430.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.2688, allocations: 0.6923 MB / 431.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.959e-05/0.2688, allocations: 8 kB / 431.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.2689, allocations: 23.42 kB / 431.4 MB, free: 5.258 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2689, allocations: 0 / 431.4 MB, free: 5.258 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.2969, allocations: 2.09 MB / 433.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.22, allocations: 1.828 kB / 433.5 MB, free: 3.301 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.841097151998838]