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.001972/0.001972, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002177/0.002177, allocations: 210.9 kB / 24.51 MB, free: 3.941 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.491/1.491, allocations: 230.5 MB / 258.2 MB, free: 7.758 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002613/0.002613, allocations: 63.89 kB / 378.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4396/0.4422, allocations: 53.39 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003246/0.4455, allocations: 1.61 MB / 433.5 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009678/0.4464, allocations: 482.8 kB / 434 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.397e-05/0.4465, allocations: 4 kB / 434 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.744e-05/0.4466, allocations: 3.938 kB / 434 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.4468, allocations: 15.8 kB / 434 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.447, allocations: 55.88 kB / 434.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001395/0.4472, allocations: 71.72 kB / 434.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.4473, allocations: 11.98 kB / 434.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/0.4474, allocations: 35.91 kB / 434.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.123e-05/0.4475, allocations: 35.84 kB / 434.2 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.4475, allocations: 4 kB / 434.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.622e-05/0.4476, allocations: 11.98 kB / 434.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.485e-05/0.4476, allocations: 11.92 kB / 434.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.88e-05/0.4476, allocations: 27.81 kB / 434.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.4478, allocations: 77.75 kB / 434.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4478, allocations: 3.938 kB / 434.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4478, allocations: 4 kB / 434.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.4478, allocations: 0 / 434.4 MB, free: 4.031 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.0005473/0.4484, allocations: 298.1 kB / 434.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4484, allocations: 12.02 kB / 434.7 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.364e-05/0.4484, allocations: 4.188 kB / 434.7 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.793e-05/0.4485, allocations: 34.75 kB / 434.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.4487, allocations: 20.88 kB / 434.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.449, allocations: 142.4 kB / 434.9 MB, free: 3.469 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.0001177/0.4491, allocations: 34.2 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.52e-05/0.4491, allocations: 12.12 kB / 434.9 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004182/0.4496, allocations: 156.9 kB / 435.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.4496, allocations: 0 / 435.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.4496, allocations: 8 kB / 435.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.4496, allocations: 0 / 435.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.4497, allocations: 35.91 kB / 435.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.4499, allocations: 149.6 kB / 435.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.4502, allocations: 81.31 kB / 435.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.4503, allocations: 49.56 kB / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.4503, allocations: 3.984 kB / 435.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.4503, allocations: 34.56 kB / 435.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.4503, allocations: 0 / 435.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003661/0.4507, allocations: 117.6 kB / 435.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.944e-05/0.4508, allocations: 85.36 kB / 435.6 MB, free: 2.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.4509, allocations: 129.8 kB / 435.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.4509, allocations: 25.7 kB / 435.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.451, allocations: 88.14 kB / 435.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.451, allocations: 7.953 kB / 435.9 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.48e-05/0.4511, allocations: 25.7 kB / 435.9 MB, free: 2.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.4512, allocations: 318.8 kB / 436.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.216e-05/0.4513, allocations: 12 kB / 436.2 MB, free: 1.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.071e-05/0.4514, allocations: 69.88 kB / 436.3 MB, free: 1.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.4515, allocations: 81.95 kB / 436.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.4515, allocations: 4 kB / 436.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001865/0.4517, allocations: 109.4 kB / 436.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.4517, allocations: 4 kB / 436.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.4517, allocations: 0 / 436.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.4517, allocations: 4 kB / 436.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.183e-05/0.4518, allocations: 15.98 kB / 436.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.4518, allocations: 4 kB / 436.5 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.889e-05/0.4519, allocations: 3.938 kB / 436.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.4519, allocations: 4 kB / 436.5 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.0001325/0.452, allocations: 130 kB / 436.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.4522, allocations: 77.56 kB / 436.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.047e-05/0.4522, allocations: 12.38 kB / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.4522, allocations: 0 / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.4522, allocations: 0 / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4522, allocations: 0 / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.4524, allocations: 140.7 kB / 436.8 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4524, allocations: 0 / 436.8 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-05/0.4525, allocations: 15.98 kB / 436.9 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4525, allocations: 0 / 436.9 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.4525, allocations: 4 kB / 436.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.728e-06/0.4525, allocations: 7.938 kB / 436.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4525, allocations: 0 / 436.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.4527, allocations: 125.8 kB / 437 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.823e-05/0.4528, allocations: 15.94 kB / 437 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.4528, allocations: 4 kB / 437 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.016e-05/0.4529, allocations: 8 kB / 437 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.4529, allocations: 128 / 437 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.4529, allocations: 11.98 kB / 437 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.844e-05/0.453, allocations: 102.5 kB / 437.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.453, allocations: 0 / 437.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002045/0.4532, allocations: 12.19 kB / 437.1 MB, free: 0.8828 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.0006922/0.4539, allocations: 0.7029 MB / 437.9 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002107/0.4541, allocations: 55.91 kB / 437.9 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4541, allocations: 0 / 437.9 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.904e-05/0.4542, allocations: 8.438 kB / 437.9 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007735/0.4549, allocations: 0.7247 MB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.4566, allocations: 1.412 MB / 440.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.567e-05/0.4567, allocations: 79.31 kB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.959e-05/0.4567, allocations: 8.062 kB / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.871e-05/0.4568, allocations: 23.42 kB / 440.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4568, allocations: 0 / 440.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.481, allocations: 2.189 MB / 442.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.38, allocations: 7.5 kB / 442.4 MB, free: 11.61 MB / 350.1 MB " [Timeout remaining time 648] (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] [Calling os._exit(0), Time elapsed: 13.932140698074363] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 11.538403459009714 11.552647134 11.101648735 Calling exit ...