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.002043/0.002043, allocations: 121.2 kB / 18.5 MB, free: 4.578 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.002167/0.002167, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.517/1.517, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.002863/0.002863, allocations: 67.84 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1515, allocations: 53.33 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003955/0.1554, allocations: 2.011 MB / 429 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.1569, allocations: 0.6427 MB / 429.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.157, allocations: 7.938 kB / 429.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.1572, allocations: 39.53 kB / 429.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.1573, allocations: 47.59 kB / 429.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.1577, allocations: 79.84 kB / 429.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.1581, allocations: 207.1 kB / 430 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.1583, allocations: 48.38 kB / 430.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.1585, allocations: 83.64 kB / 430.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001532/0.1586, allocations: 79.56 kB / 430.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.242e-05/0.1587, allocations: 12 kB / 430.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.561e-05/0.1588, allocations: 20 kB / 430.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.594e-05/0.1588, allocations: 39.83 kB / 430.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.1589, allocations: 83.42 kB / 430.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.1592, allocations: 187 kB / 430.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1592, allocations: 0 / 430.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1592, allocations: 0 / 430.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.1592, allocations: 0 / 430.6 MB, free: 1.195 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008107/0.16, allocations: 0.5006 MB / 431.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.1601, allocations: 12.03 kB / 431.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.1601, allocations: 46.73 kB / 431.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/0.1604, allocations: 44.78 kB / 431.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.1607, allocations: 243.9 kB / 431.4 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.1608, allocations: 8.375 kB / 431.4 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.1608, allocations: 16.38 kB / 431.4 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/0.1611, allocations: 176.7 kB / 431.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1611, allocations: 0 / 431.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.1612, allocations: 4 kB / 431.6 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.1612, allocations: 4 kB / 431.6 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2192/0.3804, allocations: 89.22 kB / 431.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.3814, allocations: 0.6384 MB / 432.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002392/0.3816, allocations: 122.3 kB / 432.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.3818, allocations: 57.17 kB / 432.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.3818, allocations: 5.219 kB / 432.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.3818, allocations: 40.31 kB / 432.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.124e-06/0.3818, allocations: 0.875 kB / 432.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005156/0.3823, allocations: 173.7 kB / 432.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.3824, allocations: 109.7 kB / 432.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.3826, allocations: 242.4 kB / 433.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.3826, allocations: 26.58 kB / 433.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.42e-05/0.3827, allocations: 136.3 kB / 433.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.349e-05/0.3827, allocations: 53.3 kB / 433.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.915e-05/0.3828, allocations: 34.3 kB / 433.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.289e-05/0.3829, allocations: 333.4 kB / 433.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.383, allocations: 41.5 kB / 433.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.3831, allocations: 100.4 kB / 433.8 MB, free: 9.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002514/0.3833, allocations: 141.2 kB / 433.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3834, allocations: 5.312 kB / 433.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003376/0.3837, allocations: 181.7 kB / 434.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3837, allocations: 10.12 kB / 434.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3837, allocations: 1.312 kB / 434.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.3837, allocations: 5.062 kB / 434.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.3839, allocations: 37.94 kB / 434.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.3839, allocations: 3.312 kB / 434.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.384, allocations: 18.66 kB / 434.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.384, allocations: 10.84 kB / 434.2 MB, free: 9.734 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 8.707e-05/0.3841, allocations: 129.9 kB / 434.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.3842, allocations: 25.58 kB / 434.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003767/0.3846, allocations: 185.6 kB / 434.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.3846, allocations: 10.84 kB / 434.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3846, allocations: 1.406 kB / 434.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3846, allocations: 3.25 kB / 434.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003937/0.385, allocations: 263 kB / 434.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.385, allocations: 0 / 434.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.3852, allocations: 36.77 kB / 434.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3852, allocations: 5.25 kB / 434.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.3852, allocations: 13.78 kB / 434.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3852, allocations: 0.9375 kB / 434.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3852, allocations: 1.406 kB / 434.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004754/0.3857, allocations: 483.8 kB / 435.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/0.3857, allocations: 108.6 kB / 435.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.3857, allocations: 5.188 kB / 435.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.3859, allocations: 6.594 kB / 435.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.379e-05/0.386, allocations: 15.98 kB / 435.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.386, allocations: 4.875 kB / 435.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001369/0.3861, allocations: 177.1 kB / 435.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3861, allocations: 0 / 435.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.3865, allocations: 34.41 kB / 435.7 MB, free: 8.879 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.0006211/0.3871, allocations: 1.003 MB / 436.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002984/0.3874, allocations: 109.6 kB / 436.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3874, allocations: 1.25 kB / 436.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.3875, allocations: 64.17 kB / 436.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004044/0.3879, allocations: 17.03 kB / 436.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.3905, allocations: 2.584 MB / 439.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/0.3907, allocations: 0.7397 MB / 440.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.833e-05/0.3908, allocations: 20.48 kB / 440.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.3909, allocations: 76.16 kB / 440.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3909, allocations: 2.406 kB / 440.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03027/0.4212, allocations: 3.688 MB / 444 MB, free: 4.945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.26/8.681, allocations: 8.344 kB / 444 MB, free: 4.941 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.298571348190308] Failed to read output from testmodel.py, exit status != 0: ['time', 'sine.y', 'sinAM.y', 'cosAM.y', 'sinFM.y', 'cosFM.y'] 8.751246789004654 8.763625022 8.600993189 Calling exit ...