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.001023/0.001023, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001111/0.001111, allocations: 174 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9822/0.9822, allocations: 177.1 MB / 204.3 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] 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 2.024e-06/2.024e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.311e-05/2.514e-05, allocations: 6.219 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002563/0.002588, allocations: 1.606 MB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008293/0.003418, allocations: 482.7 kB / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.428e-05/0.003502, allocations: 4 kB / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.902e-05/0.003541, allocations: 3.938 kB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.003765, allocations: 31.72 kB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003428/0.004108, allocations: 51.89 kB / 326.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.004265, allocations: 71.75 kB / 326.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.004408, allocations: 8 kB / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.004639, allocations: 51.83 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.169e-05/0.004701, allocations: 27.91 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.568e-05/0.004726, allocations: 4 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.698e-05/0.004773, allocations: 8 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.37e-05/0.004797, allocations: 23.91 kB / 326.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.368e-05/0.004841, allocations: 15.98 kB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.005004, allocations: 67.77 kB / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.005011, allocations: 7.984 kB / 327 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.005012, allocations: 0 / 327 MB, free: 13.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.005017, allocations: 3.938 kB / 327 MB, free: 13.44 MB / 298.7 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.0004649/0.005482, allocations: 301 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.005529, allocations: 8.031 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.005563, allocations: 38.73 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.005723, allocations: 24.88 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.005981, allocations: 133.6 kB / 327.5 MB, free: 12.88 MB / 298.7 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.0001098/0.006091, allocations: 38.25 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.006104, allocations: 4.375 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000307/0.006411, allocations: 165.5 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.00642, allocations: 192 / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.006434, allocations: 3.938 kB / 327.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.006439, allocations: 7.938 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.725e-05/0.006527, allocations: 39.91 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001687/0.006695, allocations: 145.6 kB / 327.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.006942, allocations: 89.25 kB / 328 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.922e-05/0.007011, allocations: 41.7 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.007038, allocations: 0 / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.007066, allocations: 38.55 kB / 328.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.007067, allocations: 0 / 328.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002909/0.007358, allocations: 121.5 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.551e-05/0.007434, allocations: 85.11 kB / 328.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.542e-05/0.007529, allocations: 124.5 kB / 328.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.007548, allocations: 29.7 kB / 328.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.189e-05/0.00759, allocations: 88.14 kB / 328.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.553e-05/0.007615, allocations: 7.891 kB / 328.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.007655, allocations: 21.7 kB / 328.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.007772, allocations: 318.8 kB / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.104e-05/0.007823, allocations: 15.92 kB / 328.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.704e-05/0.00786, allocations: 34.69 kB / 328.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.956e-05/0.007929, allocations: 42.56 kB / 329 MB, free: 11.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.007932, allocations: 0 / 329 MB, free: 11.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001057/0.008038, allocations: 73.58 kB / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.008054, allocations: 4 kB / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.008062, allocations: 3.938 kB / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.008079, allocations: 4.094 kB / 329 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.468e-05/0.008144, allocations: 15.92 kB / 329.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.00815, allocations: 0 / 329.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.343e-05/0.008174, allocations: 4.375 kB / 329.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.008179, allocations: 0 / 329.1 MB, free: 11.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.399e-05/0.008273, allocations: 129.8 kB / 329.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.535e-05/0.008369, allocations: 69.64 kB / 329.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.135e-05/0.00842, allocations: 12.38 kB / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.008424, allocations: 4 kB / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.00843, allocations: 3.938 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.008434, allocations: 4 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.185e-05/0.008526, allocations: 136.7 kB / 329.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.008529, allocations: 4 kB / 329.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.237e-05/0.008581, allocations: 11.98 kB / 329.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.008583, allocations: 0 / 329.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.008593, allocations: 11.88 kB / 329.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.008596, allocations: 4 kB / 329.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.008597, allocations: 0 / 329.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.008751, allocations: 121.9 kB / 329.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.008792, allocations: 15.94 kB / 329.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.008813, allocations: 15.88 kB / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.15e-05/0.008845, allocations: 3.938 kB / 329.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.008888, allocations: 7.984 kB / 329.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.008897, allocations: 0 / 329.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.823e-05/0.008945, allocations: 99.27 kB / 329.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008945, allocations: 0 / 329.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001461/0.009092, allocations: 12 kB / 329.7 MB, free: 10.43 MB / 298.7 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.0004372/0.009529, allocations: 0.6863 MB / 330.4 MB, free: 9.711 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000147/0.009676, allocations: 51.84 kB / 330.4 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.009678, allocations: 0 / 330.4 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.063e-05/0.009698, allocations: 8 kB / 330.5 MB, free: 9.652 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005394/0.01024, allocations: 0.718 MB / 331.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.01131, allocations: 1.327 MB / 332.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.528e-05/0.01137, allocations: 79.33 kB / 332.6 MB, free: 7.383 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.362e-05/0.0114, allocations: 7.969 kB / 332.6 MB, free: 7.375 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.084e-05/0.01145, allocations: 20.5 kB / 332.6 MB, free: 7.355 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01146, allocations: 0 / 332.6 MB, free: 7.355 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.02847, allocations: 2.624 MB / 335.2 MB, free: 4.859 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.86/6.888, allocations: 3.984 kB / 335.2 MB, free: 4.855 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/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: 8.727720363996923]