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.001261/0.001261, allocations: 118.3 kB / 18.49 MB, free: 4.559 MB / 14.72 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.00136/0.00136, allocations: 219 kB / 21.46 MB, free: 1.605 MB / 14.72 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 1.466/1.466, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 47.92 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.1009, allocations: 53.32 MB / 427 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00282/0.1037, allocations: 1.606 MB / 428.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008914/0.1046, allocations: 0.5182 MB / 429.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.691e-05/0.1047, allocations: 0 / 429.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.295e-05/0.1047, allocations: 3.938 kB / 429.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.1049, allocations: 19.86 kB / 429.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002246/0.1051, allocations: 55.86 kB / 429.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.1052, allocations: 67.77 kB / 429.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.548e-05/0.1053, allocations: 12 kB / 429.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.1054, allocations: 47.77 kB / 429.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.672e-05/0.1055, allocations: 23.86 kB / 429.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.1055, allocations: 4 kB / 429.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.954e-05/0.1055, allocations: 12 kB / 429.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.1056, allocations: 15.97 kB / 429.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.233e-05/0.1056, allocations: 27.8 kB / 429.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.1058, allocations: 67.72 kB / 429.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1058, allocations: 11.94 kB / 429.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1058, allocations: 0 / 429.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.1058, allocations: 0 / 429.5 MB, free: 2.254 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.000551/0.1063, allocations: 379.1 kB / 429.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.1064, allocations: 8.031 kB / 429.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.422e-05/0.1064, allocations: 192 / 429.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.268e-05/0.1064, allocations: 38.75 kB / 429.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.1066, allocations: 28.86 kB / 430 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/0.1069, allocations: 184.3 kB / 430.1 MB, free: 1.535 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 0.0001051/0.107, allocations: 41.17 kB / 430.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.832e-05/0.107, allocations: 12.12 kB / 430.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003776/0.1074, allocations: 172.8 kB / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.1074, allocations: 0 / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.1074, allocations: 4 kB / 430.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1074, allocations: 0 / 430.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.1075, allocations: 35.97 kB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.1077, allocations: 182.5 kB / 430.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.108, allocations: 170.4 kB / 430.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.879e-05/0.1081, allocations: 37.64 kB / 430.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.1081, allocations: 4 kB / 430.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1082, allocations: 34.5 kB / 430.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.1082, allocations: 4 kB / 430.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003658/0.1085, allocations: 117.5 kB / 430.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.078e-05/0.1086, allocations: 85.11 kB / 431 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.1087, allocations: 117.8 kB / 431.1 MB, free: 388 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.1087, allocations: 29.7 kB / 431.2 MB, free: 352 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.1088, allocations: 92.12 kB / 431.2 MB, free: 256 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.039e-05/0.1088, allocations: 3.953 kB / 431.3 MB, free: 252 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.432e-05/0.1089, allocations: 33.83 kB / 431.3 MB, free: 212 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.109, allocations: 314.8 kB / 431.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.542e-05/0.1091, allocations: 19.92 kB / 431.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.901e-05/0.1092, allocations: 58 kB / 431.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.1093, allocations: 77.88 kB / 431.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1093, allocations: 0 / 431.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001972/0.1095, allocations: 105.4 kB / 431.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1095, allocations: 11.98 kB / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1095, allocations: 0 / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1095, allocations: 4 kB / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.268e-05/0.1096, allocations: 15.94 kB / 431.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.1096, allocations: 0 / 431.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.791e-05/0.1097, allocations: 16.14 kB / 431.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.1097, allocations: 8 kB / 431.9 MB, free: 15.53 MB / 366.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.0001059/0.1098, allocations: 121.9 kB / 432 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.1099, allocations: 73.58 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.057e-05/0.11, allocations: 16.36 kB / 432.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.11, allocations: 0 / 432.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.11, allocations: 4 kB / 432.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.11, allocations: 0 / 432.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.1101, allocations: 173.6 kB / 432.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1101, allocations: 3.984 kB / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.856e-05/0.1102, allocations: 20.3 kB / 432.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.1102, allocations: 4 kB / 432.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.1102, allocations: 4 kB / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1102, allocations: 0 / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1102, allocations: 0 / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.1104, allocations: 125.8 kB / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.749e-05/0.1105, allocations: 97.05 kB / 432.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.1105, allocations: 4 kB / 432.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.957e-05/0.1106, allocations: 8 kB / 432.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.19e-05/0.1106, allocations: 3.984 kB / 432.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.1106, allocations: 4 kB / 432.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.637e-05/0.1107, allocations: 97.38 kB / 432.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1107, allocations: 7.938 kB / 432.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002049/0.1109, allocations: 8 kB / 432.7 MB, free: 14.67 MB / 366.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.0006565/0.1116, allocations: 0.7029 MB / 433.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001981/0.1118, allocations: 59.89 kB / 433.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1118, allocations: 0.5 kB / 433.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.641e-05/0.1118, allocations: 8 kB / 433.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006978/0.1125, allocations: 0.7257 MB / 434.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.114, allocations: 1.41 MB / 435.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.1143, allocations: 0.6963 MB / 436.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.666e-05/0.1143, allocations: 3.938 kB / 436.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.215e-05/0.1144, allocations: 23.42 kB / 436.3 MB, free: 10.83 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1144, allocations: 4 kB / 436.3 MB, free: 10.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01806/0.1324, allocations: 2.015 MB / 438.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.831/7.963, allocations: 8.047 kB / 438.3 MB, free: 8.938 MB / 366.1 MB " [Timeout remaining time 652] (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] [Calling os._exit(0), Time elapsed: 10.534108448016923] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 8.085930767003447 8.277764497 8.169646562 Calling exit ...