Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.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.001411/0.001411, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001837/0.001837, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.429/1.429, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Modulation",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.002228/0.002228, allocations: 68.77 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3261, allocations: 53.36 MB / 431.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003444/0.3296, allocations: 2.033 MB / 433.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.3307, allocations: 0.6426 MB / 434.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.3308, allocations: 11.94 kB / 434.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.331, allocations: 43.53 kB / 434.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.307e-05/0.3311, allocations: 39.59 kB / 434.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.3314, allocations: 91.7 kB / 434.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.3316, allocations: 203.2 kB / 435 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.3318, allocations: 52.56 kB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.332, allocations: 87.64 kB / 435.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.3321, allocations: 75.52 kB / 435.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.3321, allocations: 12 kB / 435.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.279e-05/0.3322, allocations: 19.98 kB / 435.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.63e-05/0.3322, allocations: 35.84 kB / 435.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.482e-05/0.3323, allocations: 87.42 kB / 435.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.3326, allocations: 179.9 kB / 435.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3326, allocations: 0 / 435.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3326, allocations: 0 / 435.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.3326, allocations: 0 / 435.5 MB, free: 3.301 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007077/0.3333, allocations: 441.1 kB / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3333, allocations: 12.03 kB / 435.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.3334, allocations: 46.73 kB / 436 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.3336, allocations: 36.78 kB / 436 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.3339, allocations: 186 kB / 436.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.3339, allocations: 8.375 kB / 436.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.334, allocations: 32.3 kB / 436.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.3343, allocations: 160.2 kB / 436.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3343, allocations: 0 / 436.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.3343, allocations: 8 kB / 436.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.3343, allocations: 0 / 436.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.3346, allocations: 91.88 kB / 436.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000943/0.3355, allocations: 0.6051 MB / 437.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.3358, allocations: 131.8 kB / 437.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.3359, allocations: 58.61 kB / 437.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.3359, allocations: 0 / 437.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.336, allocations: 34.56 kB / 437.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 9.31e-07/0.336, allocations: 0 / 437.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004975/0.3364, allocations: 181.8 kB / 437.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.3365, allocations: 106.8 kB / 437.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.3368, allocations: 237.9 kB / 437.8 MB, free: 0.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.3368, allocations: 25.7 kB / 437.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.679e-05/0.3369, allocations: 136.1 kB / 438 MB, free: 0.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.435e-05/0.337, allocations: 59.64 kB / 438.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.565e-05/0.337, allocations: 41.64 kB / 438.1 MB, free: 488 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3372, allocations: 330.8 kB / 438.4 MB, free: 148 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.3373, allocations: 43.97 kB / 438.5 MB, free: 104 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.3375, allocations: 90.89 kB / 438.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/0.3377, allocations: 150.7 kB / 438.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.3377, allocations: 3.938 kB / 438.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003668/0.3381, allocations: 181.3 kB / 438.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3381, allocations: 8 kB / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3381, allocations: 0 / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.3381, allocations: 4 kB / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.3383, allocations: 36.16 kB / 438.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.3383, allocations: 4 kB / 438.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.3384, allocations: 19.88 kB / 438.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.3384, allocations: 8 kB / 439 MB, free: 15.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001241/0.3386, allocations: 129.7 kB / 439.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-05/0.3386, allocations: 27.89 kB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003933/0.339, allocations: 190.8 kB / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.339, allocations: 4 kB / 439.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.339, allocations: 3.938 kB / 439.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.339, allocations: 4 kB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004567/0.3395, allocations: 248.4 kB / 439.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3395, allocations: 0 / 439.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.3397, allocations: 27.98 kB / 439.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3397, allocations: 4 kB / 439.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.3397, allocations: 7.984 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3397, allocations: 0 / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3397, allocations: 4 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006252/0.3403, allocations: 473.7 kB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.701e-05/0.3404, allocations: 23.88 kB / 440.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.3404, allocations: 8.188 kB / 440.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.3406, allocations: 15.98 kB / 440.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.882e-05/0.3406, allocations: 11.98 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.3406, allocations: 7.984 kB / 440.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000183/0.3408, allocations: 173.2 kB / 440.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3408, allocations: 0 / 440.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003479/0.3412, allocations: 35.94 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.000896/0.3421, allocations: 1.004 MB / 441.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002986/0.3424, allocations: 112.1 kB / 441.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3424, allocations: 8.125 kB / 441.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3425, allocations: 59.89 kB / 441.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.3429, allocations: 21.7 kB / 441.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.3465, allocations: 2.581 MB / 444.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.3469, allocations: 0.7437 MB / 444.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.082e-05/0.347, allocations: 21.47 kB / 444.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.3471, allocations: 75.41 kB / 444.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3471, allocations: 0 / 444.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/0.3771, allocations: 3.778 MB / 448.7 MB, free: 5.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.034/8.411, allocations: 10.5 kB / 448.7 MB, free: 5.594 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.914925503078848] Failed to read output from testmodel.py, exit status != 0: ['time', 'sine.y', 'sinAM.y', 'cosAM.y', 'sinFM.y', 'cosFM.y'] 8.48308802396059 8.503505376 8.166920358 Calling exit ...