Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001369/0.001369, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 214.6 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 59.91 kB / 377.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3312, allocations: 53.4 MB / 431.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003811/0.335, allocations: 1.604 MB / 432.7 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.3361, allocations: 486.8 kB / 433.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.3362, allocations: 7.938 kB / 433.2 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.425e-05/0.3363, allocations: 7.922 kB / 433.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.3365, allocations: 7.875 kB / 433.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.3368, allocations: 59 kB / 433.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001676/0.337, allocations: 67.77 kB / 433.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.3371, allocations: 8 kB / 433.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002108/0.3373, allocations: 43.83 kB / 433.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.136e-05/0.3374, allocations: 31.78 kB / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.3374, allocations: 8 kB / 433.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.624e-05/0.3375, allocations: 12 kB / 433.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.88e-05/0.3375, allocations: 11.94 kB / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.553e-05/0.3376, allocations: 27.84 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.3378, allocations: 68.14 kB / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3378, allocations: 0 / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3378, allocations: 0 / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.3378, allocations: 0 / 433.6 MB, free: 4.051 MB / 334.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.0006014/0.3384, allocations: 306 kB / 433.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.3384, allocations: 15.98 kB / 433.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.3385, allocations: 38.67 kB / 433.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002407/0.3387, allocations: 24.88 kB / 434 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.339, allocations: 130.4 kB / 434.1 MB, free: 3.484 MB / 334.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.0001318/0.3392, allocations: 38.25 kB / 434.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.3392, allocations: 4.375 kB / 434.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.3396, allocations: 168.8 kB / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.3396, allocations: 0 / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.3396, allocations: 4 kB / 434.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.3396, allocations: 4 kB / 434.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.3398, allocations: 31.97 kB / 434.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002071/0.34, allocations: 145.6 kB / 434.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002991/0.3403, allocations: 93.23 kB / 434.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.863e-05/0.3404, allocations: 33.7 kB / 434.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.3404, allocations: 7.938 kB / 434.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.3404, allocations: 30.56 kB / 434.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.3404, allocations: 4 kB / 434.6 MB, free: 2.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003709/0.3408, allocations: 117.7 kB / 434.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.3409, allocations: 89.05 kB / 434.8 MB, free: 2.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.341, allocations: 125.5 kB / 435 MB, free: 2.473 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.341, allocations: 29.7 kB / 435 MB, free: 2.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.419e-05/0.3411, allocations: 88.12 kB / 435.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.3411, allocations: 19.88 kB / 435.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/0.3412, allocations: 21.7 kB / 435.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.3413, allocations: 318.8 kB / 435.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.004e-05/0.3414, allocations: 20.17 kB / 435.4 MB, free: 1.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.444e-05/0.3415, allocations: 62 kB / 435.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.3416, allocations: 77.81 kB / 435.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3416, allocations: 4 kB / 435.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002043/0.3418, allocations: 101.4 kB / 435.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.3418, allocations: 11.98 kB / 435.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.3419, allocations: 0 / 435.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3419, allocations: 4 kB / 435.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.053e-05/0.342, allocations: 19.94 kB / 435.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.342, allocations: 0 / 435.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.544e-05/0.342, allocations: 16.14 kB / 435.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.342, allocations: 4 kB / 435.7 MB, free: 1.617 MB / 334.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.0001177/0.3422, allocations: 117.8 kB / 435.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.3423, allocations: 77.52 kB / 435.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.788e-05/0.3423, allocations: 12.36 kB / 435.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.3423, allocations: 4 kB / 435.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3423, allocations: 0 / 435.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3423, allocations: 0 / 435.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.3425, allocations: 132.8 kB / 436.1 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.3425, allocations: 11.92 kB / 436.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.105e-05/0.3426, allocations: 12 kB / 436.1 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3426, allocations: 0 / 436.1 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.3426, allocations: 7.984 kB / 436.1 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.3426, allocations: 4 kB / 436.1 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3426, allocations: 0 / 436.1 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.3428, allocations: 117.9 kB / 436.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.634e-05/0.3429, allocations: 19.88 kB / 436.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.3429, allocations: 4 kB / 436.2 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.352e-05/0.343, allocations: 4.109 kB / 436.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.343, allocations: 8.188 kB / 436.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-06/0.343, allocations: 8 kB / 436.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.629e-05/0.3431, allocations: 99.2 kB / 436.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3431, allocations: 0 / 436.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002065/0.3433, allocations: 16 kB / 436.4 MB, free: 0.8906 MB / 334.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.000718/0.344, allocations: 0.6951 MB / 437.1 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001979/0.3442, allocations: 52.28 kB / 437.1 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/0.3442, allocations: 12.12 kB / 437.1 MB, free: 104 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.725e-05/0.3442, allocations: 7.984 kB / 437.1 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008242/0.3451, allocations: 0.718 MB / 437.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.3468, allocations: 1.408 MB / 439.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.187e-05/0.3469, allocations: 80.11 kB / 439.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.805e-05/0.3469, allocations: 3.984 kB / 439.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.582e-05/0.347, allocations: 23.44 kB / 439.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.347, allocations: 0 / 439.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03064/0.3776, allocations: 2.537 MB / 441.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.02, allocations: 8 kB / 441.9 MB, free: 11.27 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.528985013719648]