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.001845/0.001845, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.002472/0.002472, allocations: 169.5 kB / 24.5 MB, free: 3.453 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.423/1.423, allocations: 177.2 MB / 204.9 MB, free: 8.93 MB / 190.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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 51.59 kB / 325.6 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.09905, allocations: 53.33 MB / 378.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00294/0.102, allocations: 1.603 MB / 380.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009355/0.1029, allocations: 486.8 kB / 381 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.169e-05/0.103, allocations: 4 kB / 381 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.125e-05/0.103, allocations: 7.938 kB / 381 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.1032, allocations: 11.86 kB / 381 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.1034, allocations: 55.81 kB / 381.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.1036, allocations: 67.78 kB / 381.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.1037, allocations: 7.984 kB / 381.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.1039, allocations: 43.78 kB / 381.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.98e-05/0.1039, allocations: 39.78 kB / 381.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.104, allocations: 4 kB / 381.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.845e-05/0.104, allocations: 8 kB / 381.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.937e-05/0.104, allocations: 15.97 kB / 381.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.349e-05/0.1041, allocations: 27.86 kB / 381.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.1043, allocations: 67.66 kB / 381.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1043, allocations: 0 / 381.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1043, allocations: 4 kB / 381.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1043, allocations: 0 / 381.3 MB, free: 13.22 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.0006103/0.1049, allocations: 309.9 kB / 381.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1049, allocations: 8.031 kB / 381.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002485/0.1052, allocations: 20.88 kB / 381.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002636/0.1054, allocations: 134.5 kB / 381.8 MB, free: 12.71 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.0001077/0.1056, allocations: 36.75 kB / 381.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.1056, allocations: 8.375 kB / 381.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004185/0.106, allocations: 165 kB / 382 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.106, allocations: 0 / 382 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.106, allocations: 11.98 kB / 382 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.106, allocations: 0 / 382 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001336/0.1062, allocations: 39.97 kB / 382.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001747/0.1063, allocations: 126.1 kB / 382.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.1066, allocations: 89.25 kB / 382.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.629e-05/0.1067, allocations: 33.7 kB / 382.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.1067, allocations: 7.938 kB / 382.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.1067, allocations: 30.56 kB / 382.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.1067, allocations: 0 / 382.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003801/0.1071, allocations: 121.5 kB / 382.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.817e-05/0.1072, allocations: 93.03 kB / 382.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.1073, allocations: 121.8 kB / 382.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.1074, allocations: 29.7 kB / 382.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.1074, allocations: 88.12 kB / 382.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.1074, allocations: 11.95 kB / 382.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.1075, allocations: 21.66 kB / 382.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1077, allocations: 322.8 kB / 383.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.428e-05/0.1077, allocations: 11.98 kB / 383.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.227e-05/0.1078, allocations: 62 kB / 383.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.1079, allocations: 78 kB / 383.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1079, allocations: 0 / 383.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001913/0.1081, allocations: 101.5 kB / 383.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1082, allocations: 11.94 kB / 383.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1082, allocations: 0 / 383.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.1082, allocations: 7.984 kB / 383.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.447e-05/0.1083, allocations: 19.94 kB / 383.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.1083, allocations: 0 / 383.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.549e-05/0.1083, allocations: 7.984 kB / 383.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.1083, allocations: 4 kB / 383.4 MB, free: 10.88 MB / 350.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.0001193/0.1085, allocations: 122.1 kB / 383.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.1086, allocations: 77.52 kB / 383.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.1086, allocations: 12.42 kB / 383.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.1086, allocations: 4 kB / 383.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1086, allocations: 0 / 383.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1087, allocations: 0 / 383.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.1088, allocations: 113.6 kB / 383.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1088, allocations: 3.938 kB / 383.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.039e-05/0.1088, allocations: 15.98 kB / 383.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.1089, allocations: 4 kB / 383.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.1089, allocations: 3.938 kB / 383.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.1089, allocations: 4 kB / 383.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1089, allocations: 0 / 383.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002415/0.1091, allocations: 129.8 kB / 383.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-05/0.1091, allocations: 15.88 kB / 383.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.1092, allocations: 7.938 kB / 383.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.904e-05/0.1092, allocations: 4 kB / 383.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/0.1093, allocations: 3.984 kB / 383.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-06/0.1093, allocations: 4.188 kB / 383.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.108e-05/0.1094, allocations: 102.8 kB / 384 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1094, allocations: 3.938 kB / 384 MB, free: 10.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.1096, allocations: 16 kB / 384.1 MB, free: 10.18 MB / 350.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.0001031/0.1097, allocations: 95.25 kB / 384.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.1099, allocations: 59.91 kB / 384.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1099, allocations: 4 kB / 384.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.148e-05/0.1099, allocations: 11.92 kB / 384.2 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007077/0.1106, allocations: 0.7263 MB / 385 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004004/0.111, allocations: 183.7 kB / 385.1 MB, free: 9.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.465e-05/0.1111, allocations: 76.23 kB / 385.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.929e-05/0.1111, allocations: 3.984 kB / 385.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.1112, allocations: 12.5 kB / 385.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1112, allocations: 0 / 385.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of Templates: time 0.003583/0.1148, allocations: 0.8118 MB / 386 MB, free: 8.121 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] 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: 4.172753451974131]