Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 189.5 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 43.92 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2717, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002932/0.2746, allocations: 1.602 MB / 425 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007872/0.2754, allocations: 403.1 kB / 425.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.168e-05/0.2755, allocations: 4 kB / 425.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.757e-05/0.2755, allocations: 11.86 kB / 425.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.2757, allocations: 15.88 kB / 425.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.2759, allocations: 39.95 kB / 425.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001364/0.2761, allocations: 63.78 kB / 425.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.2762, allocations: 7.984 kB / 425.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.2763, allocations: 39.84 kB / 425.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.562e-05/0.2764, allocations: 31.84 kB / 425.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.2764, allocations: 4 kB / 425.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.7e-05/0.2764, allocations: 8 kB / 425.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.929e-05/0.2764, allocations: 15.92 kB / 425.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.555e-05/0.2765, allocations: 23.86 kB / 425.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.2766, allocations: 65.83 kB / 425.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2766, allocations: 4 kB / 425.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2766, allocations: 0 / 425.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.2766, allocations: 0 / 425.7 MB, free: 12.07 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.0005418/0.2772, allocations: 302 kB / 426 MB, free: 11.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.2772, allocations: 8.031 kB / 426 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.476e-05/0.2772, allocations: 4.188 kB / 426 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.2773, allocations: 34.75 kB / 426 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.2773, allocations: 12.83 kB / 426 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.2776, allocations: 142.4 kB / 426.2 MB, free: 11.52 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.0001094/0.2777, allocations: 38.25 kB / 426.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.2777, allocations: 8.125 kB / 426.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.2781, allocations: 160.9 kB / 426.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2781, allocations: 0 / 426.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.2781, allocations: 0 / 426.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.2781, allocations: 7.984 kB / 426.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.2782, allocations: 31.92 kB / 426.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001862/0.2784, allocations: 153.6 kB / 426.6 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.2787, allocations: 93.23 kB / 426.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.566e-05/0.2788, allocations: 41.64 kB / 426.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.2788, allocations: 4 kB / 426.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/0.2788, allocations: 30.56 kB / 426.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.2788, allocations: 0 / 426.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000335/0.2792, allocations: 113.7 kB / 426.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/0.2792, allocations: 89.16 kB / 426.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.2793, allocations: 133.4 kB / 427.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.2794, allocations: 29.7 kB / 427.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.68e-05/0.2794, allocations: 88.14 kB / 427.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.2794, allocations: 7.938 kB / 427.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.2795, allocations: 25.72 kB / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.2796, allocations: 318.8 kB / 427.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.541e-05/0.2797, allocations: 16 kB / 427.5 MB, free: 10 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.888e-05/0.2798, allocations: 61.98 kB / 427.6 MB, free: 9.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.2799, allocations: 81.88 kB / 427.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2799, allocations: 0 / 427.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001886/0.2801, allocations: 105.6 kB / 427.8 MB, free: 9.707 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2801, allocations: 6.5 kB / 427.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.2801, allocations: 4 kB / 427.8 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2801, allocations: 3.938 kB / 427.8 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.852e-05/0.2802, allocations: 19.92 kB / 427.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2802, allocations: 4 kB / 427.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.031e-05/0.2803, allocations: 8 kB / 427.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.2803, allocations: 4 kB / 427.8 MB, free: 9.66 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.549e-05/0.2804, allocations: 113.8 kB / 427.9 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.2805, allocations: 81.5 kB / 428 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/0.2805, allocations: 16.41 kB / 428 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2805, allocations: 0 / 428 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.2806, allocations: 0 / 428 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2806, allocations: 192 / 428 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.2807, allocations: 148.6 kB / 428.2 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2807, allocations: 3.938 kB / 428.2 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.532e-05/0.2808, allocations: 11.98 kB / 428.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2808, allocations: 0 / 428.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.2808, allocations: 4 kB / 428.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2808, allocations: 0 / 428.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2808, allocations: 0 / 428.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.281, allocations: 129.8 kB / 428.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.2811, allocations: 11.94 kB / 428.3 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.2811, allocations: 8 kB / 428.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-05/0.2812, allocations: 4.125 kB / 428.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.839e-05/0.2812, allocations: 4 kB / 428.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.2812, allocations: 11.98 kB / 428.4 MB, free: 9.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.936e-05/0.2813, allocations: 95.27 kB / 428.5 MB, free: 8.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2813, allocations: 0 / 428.5 MB, free: 8.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.2815, allocations: 8 kB / 428.5 MB, free: 8.938 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.0006852/0.2822, allocations: 0.7068 MB / 429.2 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001929/0.2824, allocations: 51.91 kB / 429.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2824, allocations: 0 / 429.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.406e-05/0.2824, allocations: 4 kB / 429.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007501/0.2832, allocations: 0.7147 MB / 429.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.2847, allocations: 1.421 MB / 431.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.256e-05/0.2848, allocations: 79.58 kB / 431.4 MB, free: 5.762 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.821e-05/0.2848, allocations: 11.75 kB / 431.5 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.336e-05/0.2849, allocations: 19.42 kB / 431.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2849, allocations: 0 / 431.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.3074, allocations: 2.17 MB / 433.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.84, allocations: 8.062 kB / 433.7 MB, free: 3.711 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.122558012022637] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock1.y'] 10.99115297710523 11.005970614 10.72636845 Calling exit ...