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.001812/0.001812, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002152/0.002152, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.4/1.4, allocations: 230.4 MB / 254 MB, free: 15.03 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.002974/0.002974, allocations: 64.08 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1124, allocations: 53.38 MB / 426.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002868/0.1153, allocations: 1.605 MB / 428 MB, free: 3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009159/0.1162, allocations: 0.5182 MB / 428.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.972e-05/0.1163, allocations: 0 / 428.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.177e-05/0.1163, allocations: 3.938 kB / 428.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.1165, allocations: 15.88 kB / 428.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002313/0.1167, allocations: 51.88 kB / 428.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.1168, allocations: 67.78 kB / 428.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.19e-05/0.1169, allocations: 11.97 kB / 428.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.117, allocations: 35.86 kB / 428.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.411e-05/0.1171, allocations: 39.77 kB / 428.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.1171, allocations: 4 kB / 428.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.659e-05/0.1172, allocations: 8 kB / 428.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.519e-05/0.1172, allocations: 15.98 kB / 428.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.588e-05/0.1172, allocations: 31.8 kB / 428.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.1174, allocations: 67.72 kB / 428.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1174, allocations: 3.938 kB / 428.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1174, allocations: 0 / 428.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1174, allocations: 0 / 428.8 MB, free: 2.125 MB / 350.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.0005559/0.118, allocations: 383.1 kB / 429.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.118, allocations: 8.031 kB / 429.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.592e-05/0.118, allocations: 38.75 kB / 429.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002116/0.1182, allocations: 24.88 kB / 429.3 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.1185, allocations: 196.2 kB / 429.5 MB, free: 1.395 MB / 350.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.0001003/0.1186, allocations: 38.25 kB / 429.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.1186, allocations: 4.375 kB / 429.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000402/0.119, allocations: 172.7 kB / 429.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.119, allocations: 4 kB / 429.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.119, allocations: 0 / 429.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.119, allocations: 0 / 429.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.1191, allocations: 35.97 kB / 429.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002042/0.1193, allocations: 186.5 kB / 429.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.1196, allocations: 166.4 kB / 430.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.54e-05/0.1197, allocations: 33.7 kB / 430.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.1198, allocations: 11.94 kB / 430.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.1198, allocations: 34.5 kB / 430.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.1198, allocations: 0 / 430.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003529/0.1202, allocations: 117.5 kB / 430.3 MB, free: 484 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.688e-05/0.1202, allocations: 85.11 kB / 430.3 MB, free: 380 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.1203, allocations: 123.9 kB / 430.5 MB, free: 248 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1204, allocations: 25.7 kB / 430.5 MB, free: 216 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.1204, allocations: 92.14 kB / 430.6 MB, free: 120 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.1205, allocations: 7.938 kB / 430.6 MB, free: 112 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.139e-05/0.1205, allocations: 21.72 kB / 430.6 MB, free: 84 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1207, allocations: 323 kB / 430.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.544e-05/0.1207, allocations: 15.98 kB / 430.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.635e-05/0.1208, allocations: 58 kB / 431 MB, free: 15.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.1209, allocations: 85.81 kB / 431.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1209, allocations: 0 / 431.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001879/0.1211, allocations: 105.4 kB / 431.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.1211, allocations: 6.188 kB / 431.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.1211, allocations: 4 kB / 431.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.1212, allocations: 0 / 431.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.698e-05/0.1212, allocations: 19.92 kB / 431.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1213, allocations: 4 kB / 431.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.02e-05/0.1213, allocations: 7.938 kB / 431.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.1213, allocations: 8.219 kB / 431.2 MB, free: 15.4 MB / 366.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.943e-05/0.1214, allocations: 121.8 kB / 431.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.1216, allocations: 77.7 kB / 431.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.1216, allocations: 12.38 kB / 431.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.1216, allocations: 3.938 kB / 431.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1216, allocations: 0 / 431.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1216, allocations: 7.984 kB / 431.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.1218, allocations: 169.6 kB / 431.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1218, allocations: 4.25 kB / 431.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.506e-05/0.1218, allocations: 15.98 kB / 431.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.1218, allocations: 0 / 431.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.1219, allocations: 12 kB / 431.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1219, allocations: 0 / 431.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1219, allocations: 0 / 431.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002363/0.1221, allocations: 129.8 kB / 431.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.02e-05/0.1222, allocations: 96.98 kB / 431.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.1222, allocations: 8 kB / 431.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.143e-05/0.1223, allocations: 0 / 431.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.228e-05/0.1223, allocations: 8 kB / 431.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.1223, allocations: 3.984 kB / 431.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.262e-05/0.1224, allocations: 95.27 kB / 432 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1224, allocations: 0 / 432 MB, free: 14.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002061/0.1226, allocations: 16 kB / 432 MB, free: 14.53 MB / 366.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.000688/0.1233, allocations: 0.699 MB / 432.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002003/0.1235, allocations: 51.91 kB / 432.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1235, allocations: 0.5 kB / 432.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.92e-05/0.1235, allocations: 16 kB / 432.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000737/0.1242, allocations: 0.7155 MB / 433.5 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.1258, allocations: 1.404 MB / 434.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.1262, allocations: 0.7001 MB / 435.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.797e-05/0.1262, allocations: 4 kB / 435.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.428e-05/0.1262, allocations: 23.42 kB / 435.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1262, allocations: 96 / 435.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.1509, allocations: 1.983 MB / 437.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.596/7.747, allocations: 11.22 kB / 437.6 MB, free: 8.824 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.419372537988238]