Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001289/0.001289, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.001408/0.001408, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.489/1.489, allocations: 230.6 MB / 258.3 MB, free: 8.074 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-beta.om/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_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 72.77 kB / 378.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.291, allocations: 53.38 MB / 431.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003767/0.2948, allocations: 1.604 MB / 433.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.2961, allocations: 0.5181 MB / 434.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.2962, allocations: 4 kB / 434.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.717e-05/0.2963, allocations: 7.875 kB / 434.1 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.2965, allocations: 19.86 kB / 434.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002935/0.2968, allocations: 43.95 kB / 434.1 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.297, allocations: 71.75 kB / 434.2 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.2971, allocations: 8 kB / 434.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.2972, allocations: 35.86 kB / 434.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.457e-05/0.2973, allocations: 39.83 kB / 434.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.2973, allocations: 4 kB / 434.3 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.22e-05/0.2974, allocations: 8 kB / 434.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.6e-05/0.2974, allocations: 19.86 kB / 434.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.944e-05/0.2974, allocations: 31.86 kB / 434.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001602/0.2976, allocations: 72.48 kB / 434.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2976, allocations: 0 / 434.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2976, allocations: 0 / 434.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.2976, allocations: 3.938 kB / 434.4 MB, free: 4.414 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.0005888/0.2982, allocations: 306 kB / 434.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2982, allocations: 8.031 kB / 434.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.002e-05/0.2983, allocations: 34.75 kB / 434.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002218/0.2985, allocations: 28.88 kB / 434.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.2988, allocations: 138.4 kB / 434.9 MB, free: 3.848 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.0001072/0.2989, allocations: 38.19 kB / 435 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.2989, allocations: 8.375 kB / 435 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.2993, allocations: 160.9 kB / 435.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.2993, allocations: 0 / 435.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.2993, allocations: 8 kB / 435.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.2993, allocations: 0 / 435.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.2995, allocations: 31.91 kB / 435.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002082/0.2997, allocations: 157.6 kB / 435.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.3, allocations: 85.31 kB / 435.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.763e-05/0.3001, allocations: 41.64 kB / 435.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.3001, allocations: 7.938 kB / 435.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.3001, allocations: 30.56 kB / 435.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.3001, allocations: 0 / 435.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003817/0.3005, allocations: 121.5 kB / 435.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.487e-05/0.3006, allocations: 89.05 kB / 435.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.3007, allocations: 124.6 kB / 435.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.3008, allocations: 29.7 kB / 435.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.533e-05/0.3008, allocations: 88.14 kB / 435.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/0.3009, allocations: 11.94 kB / 435.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-05/0.3009, allocations: 25.83 kB / 436 MB, free: 2.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3011, allocations: 318.8 kB / 436.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.279e-05/0.3011, allocations: 11.98 kB / 436.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.374e-05/0.3012, allocations: 69.88 kB / 436.4 MB, free: 2.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001399/0.3013, allocations: 73.94 kB / 436.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3013, allocations: 0 / 436.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002819/0.3016, allocations: 113.4 kB / 436.5 MB, free: 2.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.3016, allocations: 4 kB / 436.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3016, allocations: 4 kB / 436.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.3017, allocations: 0 / 436.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.147e-05/0.3017, allocations: 12 kB / 436.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.3018, allocations: 7.984 kB / 436.6 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.374e-05/0.3018, allocations: 11.94 kB / 436.6 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.3018, allocations: 8.219 kB / 436.6 MB, free: 1.98 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 9.912e-05/0.3019, allocations: 117.8 kB / 436.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.3021, allocations: 73.89 kB / 436.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.678e-05/0.3021, allocations: 16.36 kB / 436.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3021, allocations: 0 / 436.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.3021, allocations: 4 kB / 436.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3021, allocations: 4 kB / 436.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.3023, allocations: 144.7 kB / 436.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3023, allocations: 3.938 kB / 436.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.541e-05/0.3023, allocations: 15.98 kB / 437 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3023, allocations: 4 kB / 437 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.3024, allocations: 0 / 437 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3024, allocations: 7.875 kB / 437 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3024, allocations: 3.984 kB / 437 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.3026, allocations: 121.9 kB / 437.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.3026, allocations: 23.88 kB / 437.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.3026, allocations: 8 kB / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.524e-05/0.3027, allocations: 4 kB / 437.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.3027, allocations: 3.984 kB / 437.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-06/0.3028, allocations: 4 kB / 437.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.966e-05/0.3028, allocations: 99.27 kB / 437.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3028, allocations: 0 / 437.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002018/0.303, allocations: 8 kB / 437.2 MB, free: 1.242 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.0006355/0.3037, allocations: 0.6953 MB / 437.9 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001963/0.3039, allocations: 59.84 kB / 438 MB, free: 468 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3039, allocations: 0.5 kB / 438 MB, free: 468 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.094e-05/0.3039, allocations: 19.92 kB / 438 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007157/0.3046, allocations: 0.7156 MB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.3062, allocations: 1.41 MB / 440.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.3065, allocations: 0.6924 MB / 440.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.143e-05/0.3065, allocations: 0 / 440.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.554e-05/0.3066, allocations: 23.42 kB / 440.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3066, allocations: 0 / 440.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.3301, allocations: 2.031 MB / 442.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.087/8.417, allocations: 11.38 kB / 442.9 MB, free: 11.48 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.742572599090636] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 8.48989329393953 8.520287847 8.216903629 Calling exit ...