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.001607/0.001607, allocations: 123.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 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.001731/0.001731, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.409/1.409, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001563/0.001563, allocations: 52.06 kB / 373 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09745, allocations: 53.33 MB / 426.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002765/0.1002, allocations: 1.61 MB / 427.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008973/0.1011, allocations: 0.5182 MB / 428.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.302e-05/0.1012, allocations: 0 / 428.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.523e-05/0.1012, allocations: 7.875 kB / 428.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001375/0.1013, allocations: 11.86 kB / 428.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002108/0.1015, allocations: 55.88 kB / 428.5 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001116/0.1017, allocations: 63.78 kB / 428.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.066e-05/0.1017, allocations: 15.92 kB / 428.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1019, allocations: 35.91 kB / 428.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.18e-05/0.1019, allocations: 31.84 kB / 428.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.1019, allocations: 11.94 kB / 428.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.882e-05/0.102, allocations: 12 kB / 428.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.216e-05/0.102, allocations: 15.97 kB / 428.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.065e-05/0.1021, allocations: 27.8 kB / 428.7 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.1022, allocations: 71.66 kB / 428.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1022, allocations: 0 / 428.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1022, allocations: 4 kB / 428.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1022, allocations: 0 / 428.8 MB, free: 2.379 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.0005255/0.1027, allocations: 375.2 kB / 429.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.1028, allocations: 15.97 kB / 429.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.11e-05/0.1028, allocations: 34.75 kB / 429.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.103, allocations: 24.88 kB / 429.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.1032, allocations: 196.2 kB / 429.4 MB, free: 1.652 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 9.346e-05/0.1033, allocations: 34.25 kB / 429.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.1034, allocations: 8.375 kB / 429.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003671/0.1037, allocations: 168.8 kB / 429.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.1037, allocations: 0 / 429.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.1037, allocations: 8 kB / 429.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.1037, allocations: 0 / 429.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.1039, allocations: 27.97 kB / 429.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001997/0.1041, allocations: 190.5 kB / 429.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.1044, allocations: 162.4 kB / 430 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.846e-05/0.1045, allocations: 37.7 kB / 430.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.1045, allocations: 3.938 kB / 430.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.1045, allocations: 42.5 kB / 430.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.1045, allocations: 3.938 kB / 430.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003259/0.1048, allocations: 109.5 kB / 430.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.319e-05/0.1049, allocations: 85.11 kB / 430.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.105, allocations: 128.2 kB / 430.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.105, allocations: 29.7 kB / 430.5 MB, free: 480 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.688e-05/0.1051, allocations: 92.27 kB / 430.5 MB, free: 384 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.1051, allocations: 7.938 kB / 430.6 MB, free: 376 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.79e-05/0.1052, allocations: 21.72 kB / 430.6 MB, free: 348 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1053, allocations: 322.8 kB / 430.9 MB, free: 16 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.072e-05/0.1054, allocations: 11.98 kB / 430.9 MB, free: 4 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.1055, allocations: 62.08 kB / 431 MB, free: 15.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.1056, allocations: 81.88 kB / 431 MB, free: 15.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1056, allocations: 3.938 kB / 431 MB, free: 15.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001915/0.1058, allocations: 101.4 kB / 431.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.1058, allocations: 4 kB / 431.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1058, allocations: 4 kB / 431.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1058, allocations: 0 / 431.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.871e-05/0.1059, allocations: 20.14 kB / 431.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.1059, allocations: 8 kB / 431.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.411e-05/0.106, allocations: 11.94 kB / 431.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.106, allocations: 4 kB / 431.2 MB, free: 15.66 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.353e-05/0.1061, allocations: 117.8 kB / 431.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.1062, allocations: 77.83 kB / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.851e-05/0.1062, allocations: 16.36 kB / 431.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1062, allocations: 0 / 431.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1062, allocations: 4 kB / 431.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1062, allocations: 7.984 kB / 431.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.1064, allocations: 173.6 kB / 431.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1064, allocations: 3.938 kB / 431.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.547e-05/0.1065, allocations: 15.98 kB / 431.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1065, allocations: 0 / 431.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.1065, allocations: 0 / 431.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1065, allocations: 4.188 kB / 431.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1065, allocations: 0 / 431.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002336/0.1067, allocations: 129.8 kB / 431.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.083e-05/0.1068, allocations: 96.98 kB / 431.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1068, allocations: 0 / 431.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.644e-05/0.1069, allocations: 8 kB / 431.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.1069, allocations: 0 / 431.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.1069, allocations: 7.984 kB / 431.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.365e-05/0.107, allocations: 95.27 kB / 431.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.107, allocations: 0 / 431.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001982/0.1072, allocations: 16 kB / 432 MB, free: 14.79 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.0006697/0.1079, allocations: 0.699 MB / 432.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001888/0.108, allocations: 64.09 kB / 432.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.108, allocations: 0 / 432.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.844e-05/0.1081, allocations: 8 kB / 432.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007037/0.1088, allocations: 0.7141 MB / 433.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.1102, allocations: 1.411 MB / 434.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.1106, allocations: 0.7001 MB / 435.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.032e-05/0.1106, allocations: 8 kB / 435.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.679e-05/0.1106, allocations: 19.42 kB / 435.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1106, allocations: 0 / 435.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.1344, allocations: 1.987 MB / 437.6 MB, free: 9.098 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/7.877, allocations: 3.938 kB / 437.6 MB, free: 9.094 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 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.mat","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 10.350909970933571]