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.00106/0.00106, allocations: 76.08 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.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.0007891/0.0007891, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9121/0.9121, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 2.315e-06/2.315e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.505e-05/2.736e-05, allocations: 2.281 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003195/0.003222, allocations: 1.57 MB / 320 MB, free: 4.754 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008355/0.004058, allocations: 434.9 kB / 320.4 MB, free: 4.324 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.243e-05/0.00414, allocations: 0 / 320.4 MB, free: 4.324 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.003e-05/0.00418, allocations: 7.938 kB / 320.4 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.004371, allocations: 11.88 kB / 320.5 MB, free: 4.305 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002461/0.004618, allocations: 47.77 kB / 320.5 MB, free: 4.258 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001486/0.004766, allocations: 71.77 kB / 320.6 MB, free: 4.188 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.004891, allocations: 15.95 kB / 320.6 MB, free: 4.172 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.00506, allocations: 39.91 kB / 320.6 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.394e-05/0.005134, allocations: 31.89 kB / 320.7 MB, free: 4.102 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.005168, allocations: 4 kB / 320.7 MB, free: 4.098 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.403e-05/0.005182, allocations: 4 kB / 320.7 MB, free: 4.094 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.005213, allocations: 19.92 kB / 320.7 MB, free: 4.074 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.658e-05/0.005259, allocations: 19.97 kB / 320.7 MB, free: 4.055 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.00541, allocations: 63.78 kB / 320.8 MB, free: 3.992 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.005414, allocations: 0 / 320.8 MB, free: 3.992 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.005416, allocations: 0 / 320.8 MB, free: 3.992 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.00542, allocations: 0 / 320.8 MB, free: 3.992 MB / 282.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.0005223/0.005943, allocations: 301.3 kB / 321.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.00599, allocations: 16.86 kB / 321.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.646e-05/0.006036, allocations: 38.75 kB / 321.1 MB, free: 3.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.768e-05/0.006074, allocations: 8.891 kB / 321.1 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.006316, allocations: 141.4 kB / 321.3 MB, free: 3.441 MB / 282.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.0001216/0.006438, allocations: 38.25 kB / 321.3 MB, free: 3.398 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/0.006452, allocations: 4.375 kB / 321.3 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000383/0.006835, allocations: 157.4 kB / 321.5 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.006845, allocations: 192 / 321.5 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.00686, allocations: 7.938 kB / 321.5 MB, free: 3.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.006867, allocations: 4 kB / 321.5 MB, free: 3.211 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.006991, allocations: 35.97 kB / 321.5 MB, free: 3.176 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001785/0.007169, allocations: 153.5 kB / 321.7 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.007432, allocations: 81.25 kB / 321.7 MB, free: 2.883 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.205e-05/0.007514, allocations: 37.7 kB / 321.8 MB, free: 2.84 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.007536, allocations: 4 kB / 321.8 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.007558, allocations: 34.56 kB / 321.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.00756, allocations: 0 / 321.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003096/0.007869, allocations: 121.5 kB / 321.9 MB, free: 2.668 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/0.007947, allocations: 88.98 kB / 322 MB, free: 2.562 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.154e-05/0.008038, allocations: 125.8 kB / 322.1 MB, free: 2.43 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.008053, allocations: 25.7 kB / 322.2 MB, free: 2.398 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.496e-05/0.008088, allocations: 88.14 kB / 322.2 MB, free: 2.309 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.008106, allocations: 3.953 kB / 322.3 MB, free: 2.305 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.528e-05/0.008141, allocations: 21.7 kB / 322.3 MB, free: 2.277 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.106e-05/0.008222, allocations: 322.8 kB / 322.6 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.092e-05/0.008263, allocations: 15.98 kB / 322.6 MB, free: 1.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.231e-05/0.008296, allocations: 30.56 kB / 322.6 MB, free: 1.898 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.149e-05/0.008357, allocations: 46.62 kB / 322.7 MB, free: 1.844 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.008359, allocations: 0 / 322.7 MB, free: 1.844 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.292e-05/0.008452, allocations: 69.58 kB / 322.7 MB, free: 1.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.008466, allocations: 8 kB / 322.8 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.008473, allocations: 7.922 kB / 322.8 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.008486, allocations: 4.094 kB / 322.8 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.186e-05/0.008537, allocations: 8 kB / 322.8 MB, free: 1.742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.008542, allocations: 0 / 322.8 MB, free: 1.742 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.23e-05/0.008564, allocations: 4.375 kB / 322.8 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.00857, allocations: 0 / 322.8 MB, free: 1.738 MB / 282.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 6.474e-05/0.008635, allocations: 121.8 kB / 322.9 MB, free: 1.609 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-05/0.008716, allocations: 77.58 kB / 323 MB, free: 1.527 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/0.00875, allocations: 16.38 kB / 323 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.008752, allocations: 0 / 323 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.309e-06/0.008758, allocations: 4 kB / 323 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.008762, allocations: 7.984 kB / 323 MB, free: 1.496 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.764e-05/0.00885, allocations: 128.8 kB / 323.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.008851, allocations: 0 / 323.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.371e-05/0.008895, allocations: 11.98 kB / 323.1 MB, free: 1.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.008899, allocations: 7.984 kB / 323.1 MB, free: 1.309 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.008909, allocations: 7.938 kB / 323.2 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.00891, allocations: 0 / 323.2 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.008911, allocations: 0 / 323.2 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.009043, allocations: 125.8 kB / 323.3 MB, free: 1.156 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.009074, allocations: 11.94 kB / 323.3 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.009091, allocations: 11.94 kB / 323.3 MB, free: 1.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.98e-05/0.009121, allocations: 4 kB / 323.3 MB, free: 1.129 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.7e-05/0.009148, allocations: 3.984 kB / 323.3 MB, free: 1.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.009158, allocations: 8 kB / 323.3 MB, free: 1.117 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.826e-05/0.009196, allocations: 103.1 kB / 323.4 MB, free: 1.016 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009196, allocations: 0 / 323.4 MB, free: 1.016 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001329/0.009329, allocations: 8 kB / 323.4 MB, free: 1.008 MB / 282.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.0003984/0.009727, allocations: 0.6913 MB / 324.1 MB, free: 292 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001214/0.009849, allocations: 47.97 kB / 324.2 MB, free: 244 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.00985, allocations: 0 / 324.2 MB, free: 244 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.148e-05/0.009872, allocations: 15.94 kB / 324.2 MB, free: 228 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.01032, allocations: 0.7063 MB / 324.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009112/0.01123, allocations: 1.332 MB / 326.2 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.879e-05/0.01128, allocations: 75.33 kB / 326.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.722e-05/0.01131, allocations: 0 / 326.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.807e-05/0.01136, allocations: 24.48 kB / 326.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of SimCode: time 8.81e-07/0.01136, allocations: 0 / 326.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.02809, allocations: 2.597 MB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.609/6.637, allocations: 10.77 kB / 328.9 MB, free: 11.47 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.343877372331917]