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.001785/0.001785, allocations: 123.9 kB / 17.79 MB, free: 5.285 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.001986/0.001986, allocations: 185.3 kB / 20.73 MB, free: 2.355 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.382/1.382, allocations: 225.6 MB / 249.1 MB, free: 3.715 MB / 190.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.001483/0.001483, allocations: 55.91 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09202/0.0935, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002709/0.09621, allocations: 1.6 MB / 419.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007323/0.09694, allocations: 454.8 kB / 419.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.896e-05/0.097, allocations: 0 / 419.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.036e-05/0.09703, allocations: 3.938 kB / 419.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.09718, allocations: 19.86 kB / 419.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.09736, allocations: 35.89 kB / 419.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.09748, allocations: 71.77 kB / 420 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.286e-05/0.09756, allocations: 8 kB / 420 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.669e-05/0.09766, allocations: 31.91 kB / 420 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.25e-05/0.09772, allocations: 31.84 kB / 420 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.09774, allocations: 8 kB / 420 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.192e-05/0.09775, allocations: 4 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.018e-05/0.09778, allocations: 23.91 kB / 420.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.183e-05/0.09782, allocations: 23.86 kB / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.09794, allocations: 67.66 kB / 420.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.09795, allocations: 3.938 kB / 420.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09795, allocations: 0 / 420.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.09795, allocations: 0 / 420.2 MB, free: 10.23 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.0005189/0.09847, allocations: 379.2 kB / 420.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.09851, allocations: 8.031 kB / 420.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.901e-05/0.09855, allocations: 42.75 kB / 420.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.31e-05/0.09859, allocations: 8.891 kB / 420.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.09881, allocations: 192.3 kB / 420.8 MB, free: 9.516 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.517e-05/0.09891, allocations: 35.64 kB / 420.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.09892, allocations: 4.375 kB / 420.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003643/0.09929, allocations: 172.7 kB / 421 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.0993, allocations: 0 / 421 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.09931, allocations: 4 kB / 421 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.09931, allocations: 4 kB / 421 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000115/0.09943, allocations: 31.97 kB / 421 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.09962, allocations: 182.5 kB / 421.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002876/0.0999, allocations: 174.4 kB / 421.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.145e-05/0.1, allocations: 37.7 kB / 421.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.1, allocations: 7.938 kB / 421.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.1001, allocations: 34.5 kB / 421.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.1001, allocations: 0 / 421.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003146/0.1004, allocations: 121.5 kB / 421.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.1004, allocations: 85.11 kB / 421.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.807e-05/0.1005, allocations: 124.6 kB / 421.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.1006, allocations: 37.77 kB / 421.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.1006, allocations: 92.12 kB / 421.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.1006, allocations: 7.938 kB / 421.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.1007, allocations: 29.7 kB / 421.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1008, allocations: 310.8 kB / 422.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.154e-05/0.1009, allocations: 19.98 kB / 422.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.938e-05/0.1009, allocations: 62 kB / 422.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.1011, allocations: 77.88 kB / 422.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1011, allocations: 0 / 422.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001743/0.1012, allocations: 101.4 kB / 422.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.1012, allocations: 4 kB / 422.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1012, allocations: 7.984 kB / 422.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.1013, allocations: 4.219 kB / 422.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.503e-05/0.1013, allocations: 15.94 kB / 422.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1013, allocations: 4 kB / 422.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.42e-05/0.1014, allocations: 11.98 kB / 422.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.587e-06/0.1014, allocations: 4 kB / 422.5 MB, free: 7.512 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 8.315e-05/0.1015, allocations: 113.8 kB / 422.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.1016, allocations: 81.95 kB / 422.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.706e-05/0.1017, allocations: 16.36 kB / 422.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1017, allocations: 3.938 kB / 422.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1017, allocations: 4 kB / 422.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.1017, allocations: 4 kB / 422.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.1018, allocations: 173.6 kB / 422.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1018, allocations: 3.938 kB / 422.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.106e-05/0.1019, allocations: 11.98 kB / 422.9 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1019, allocations: 0 / 422.9 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.1019, allocations: 8 kB / 423 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1019, allocations: 0 / 423 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1019, allocations: 0 / 423 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002101/0.1021, allocations: 121.9 kB / 423.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.361e-05/0.1022, allocations: 104.9 kB / 423.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.1022, allocations: 4 kB / 423.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.523e-05/0.1023, allocations: 4 kB / 423.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.476e-05/0.1023, allocations: 4 kB / 423.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.1023, allocations: 3.984 kB / 423.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.432e-05/0.1024, allocations: 95.27 kB / 423.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1024, allocations: 4 kB / 423.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000199/0.1026, allocations: 12 kB / 423.3 MB, free: 6.648 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.0006116/0.1032, allocations: 0.7029 MB / 424 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000171/0.1033, allocations: 55.97 kB / 424.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1033, allocations: 0 / 424.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.87e-05/0.1034, allocations: 12 kB / 424.1 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006456/0.104, allocations: 0.7108 MB / 424.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.1054, allocations: 1.401 MB / 426.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.1057, allocations: 0.693 MB / 426.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.104e-05/0.1058, allocations: 7.984 kB / 426.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.716e-05/0.1058, allocations: 19.44 kB / 426.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1058, allocations: 96 / 426.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.005/1.111, allocations: 1.961 MB / 428.9 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.664/10.77, allocations: 9.141 kB / 428.9 MB, free: 0.9922 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.459112321957946]