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.001352/0.001352, allocations: 109.4 kB / 19.8 MB, free: 2.5 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.001492/0.001492, allocations: 214.4 kB / 23 MB, free: 5.582 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.395/1.395, allocations: 230.5 MB / 256.5 MB, free: 8.172 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.002806/0.002806, allocations: 72.02 kB / 376.2 MB, free: 3.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.27, allocations: 53.31 MB / 429.5 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003218/0.2732, allocations: 1.626 MB / 431.2 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009523/0.2741, allocations: 0.5181 MB / 431.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.147e-05/0.2742, allocations: 0 / 431.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.44e-05/0.2743, allocations: 7.922 kB / 431.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.2744, allocations: 15.86 kB / 431.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.2746, allocations: 55.88 kB / 431.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.2747, allocations: 63.78 kB / 431.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.491e-05/0.2748, allocations: 15.98 kB / 431.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.275, allocations: 39.78 kB / 431.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.429e-05/0.2751, allocations: 35.84 kB / 431.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.2751, allocations: 4 kB / 431.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.897e-05/0.2751, allocations: 8 kB / 431.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.442e-05/0.2751, allocations: 15.91 kB / 431.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.965e-05/0.2752, allocations: 23.88 kB / 432 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.2753, allocations: 76.06 kB / 432 MB, free: 4.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2753, allocations: 4 kB / 432 MB, free: 4.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2753, allocations: 0 / 432 MB, free: 4.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.2753, allocations: 0 / 432 MB, free: 4.906 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.0005468/0.2759, allocations: 379.2 kB / 432.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2759, allocations: 8.031 kB / 432.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.782e-05/0.276, allocations: 38.69 kB / 432.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00021/0.2762, allocations: 20.88 kB / 432.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.2764, allocations: 200.2 kB / 432.7 MB, free: 4.18 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.0001131/0.2766, allocations: 38.25 kB / 432.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.2766, allocations: 4.375 kB / 432.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000371/0.2769, allocations: 160.8 kB / 432.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2769, allocations: 0 / 432.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.277, allocations: 11.98 kB / 432.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.277, allocations: 4 kB / 432.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.2771, allocations: 31.97 kB / 432.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001993/0.2773, allocations: 182.5 kB / 433.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.2776, allocations: 166.4 kB / 433.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.2777, allocations: 41.69 kB / 433.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.2777, allocations: 3.938 kB / 433.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.2777, allocations: 30.56 kB / 433.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.2777, allocations: 4 kB / 433.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003455/0.2781, allocations: 113.6 kB / 433.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.2782, allocations: 93.08 kB / 433.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.2783, allocations: 132.7 kB / 433.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.2783, allocations: 29.7 kB / 433.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.2783, allocations: 84.14 kB / 433.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.2784, allocations: 15.94 kB / 433.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.2784, allocations: 17.72 kB / 433.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2786, allocations: 322.8 kB / 434.1 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.769e-05/0.2786, allocations: 12 kB / 434.1 MB, free: 2.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.379e-05/0.2787, allocations: 58 kB / 434.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.2788, allocations: 82.11 kB / 434.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2788, allocations: 4 kB / 434.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001947/0.279, allocations: 109.5 kB / 434.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.279, allocations: 4 kB / 434.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.279, allocations: 0 / 434.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.279, allocations: 4 kB / 434.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.381e-05/0.2791, allocations: 23.92 kB / 434.4 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.2791, allocations: 4 kB / 434.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.847e-05/0.2792, allocations: 3.938 kB / 434.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.2792, allocations: 4 kB / 434.4 MB, free: 2.188 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.0001019/0.2793, allocations: 122 kB / 434.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.2794, allocations: 81.5 kB / 434.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.909e-05/0.2795, allocations: 8.375 kB / 434.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2795, allocations: 4 kB / 434.6 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2795, allocations: 0 / 434.6 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2795, allocations: 0 / 434.6 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.2796, allocations: 173.6 kB / 434.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2796, allocations: 11.92 kB / 434.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.909e-05/0.2797, allocations: 8 kB / 434.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2797, allocations: 0 / 434.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.2797, allocations: 11.92 kB / 434.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2797, allocations: 4 kB / 434.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2797, allocations: 0 / 434.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.28, allocations: 117.9 kB / 435 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.162e-05/0.28, allocations: 97.17 kB / 435 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.2801, allocations: 4 kB / 435.1 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.747e-05/0.2801, allocations: 15.92 kB / 435.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-05/0.2801, allocations: 0 / 435.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.2802, allocations: 4 kB / 435.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.252e-05/0.2802, allocations: 99.27 kB / 435.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2802, allocations: 0 / 435.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002044/0.2804, allocations: 8 kB / 435.2 MB, free: 1.328 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.0006591/0.2811, allocations: 0.707 MB / 435.9 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001937/0.2813, allocations: 55.91 kB / 435.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2813, allocations: 0 / 435.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.14e-05/0.2813, allocations: 11.98 kB / 435.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007415/0.2821, allocations: 0.7217 MB / 436.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.2836, allocations: 1.423 MB / 438.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.284, allocations: 0.6885 MB / 438.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.829e-05/0.284, allocations: 11.97 kB / 438.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.066e-05/0.2841, allocations: 19.44 kB / 438.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2841, allocations: 0 / 438.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02562/0.3097, allocations: 1.963 MB / 440.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/7.937, allocations: 10.58 kB / 440.8 MB, free: 11.6 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 --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.123173175001284] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 8.006216654990567 8.033302561 7.7522055739999995 Calling exit ...