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.001308/0.001308, 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.001451/0.001451, 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.488/1.488, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.002033/0.002033, allocations: 64.77 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2614, allocations: 53.38 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003757/0.2651, allocations: 2.021 MB / 433.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.2665, allocations: 0.6543 MB / 434.6 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.2666, allocations: 11.88 kB / 434.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.2668, allocations: 39.59 kB / 434.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.2669, allocations: 39.59 kB / 434.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003335/0.2673, allocations: 83.78 kB / 434.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003151/0.2676, allocations: 211.2 kB / 435 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.2678, allocations: 56.34 kB / 435 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.268, allocations: 71.72 kB / 435.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.2681, allocations: 83.48 kB / 435.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/0.2681, allocations: 12 kB / 435.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.835e-05/0.2682, allocations: 23.94 kB / 435.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.543e-05/0.2682, allocations: 31.84 kB / 435.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.43e-05/0.2683, allocations: 95.47 kB / 435.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.2686, allocations: 173.4 kB / 435.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.2686, allocations: 3.984 kB / 435.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2686, allocations: 0 / 435.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2686, allocations: 0 / 435.5 MB, free: 3.285 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.0007018/0.2693, allocations: 437.1 kB / 435.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2693, allocations: 12.03 kB / 435.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.033e-05/0.2694, allocations: 46.73 kB / 436 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002221/0.2696, allocations: 40.78 kB / 436 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.27, allocations: 190 kB / 436.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.27, allocations: 16.31 kB / 436.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.503e-05/0.27, allocations: 12.38 kB / 436.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.2704, allocations: 160.3 kB / 436.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.2704, allocations: 4 kB / 436.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.2704, allocations: 8 kB / 436.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.2704, allocations: 3.984 kB / 436.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.2706, allocations: 99.88 kB / 436.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000999/0.2716, allocations: 0.6012 MB / 437.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/0.2719, allocations: 131.8 kB / 437.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.272, allocations: 54.67 kB / 437.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.2721, allocations: 4 kB / 437.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.2721, allocations: 38.5 kB / 437.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/0.2721, allocations: 0 / 437.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005736/0.2727, allocations: 181.3 kB / 437.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.509e-05/0.2728, allocations: 110.9 kB / 437.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002868/0.273, allocations: 233.9 kB / 437.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.2731, allocations: 29.7 kB / 437.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.2732, allocations: 132.1 kB / 438 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.2732, allocations: 55.53 kB / 438.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.57e-05/0.2733, allocations: 33.7 kB / 438.1 MB, free: 476 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.2735, allocations: 338.8 kB / 438.4 MB, free: 128 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2736, allocations: 31.98 kB / 438.5 MB, free: 96 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.2737, allocations: 94.84 kB / 438.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.274, allocations: 146.7 kB / 438.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.274, allocations: 3.938 kB / 438.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003849/0.2744, allocations: 185.4 kB / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.2744, allocations: 8 kB / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2745, allocations: 0 / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.2745, allocations: 4 kB / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.2747, allocations: 36.47 kB / 438.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.2747, allocations: 4 kB / 438.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.2749, allocations: 19.89 kB / 438.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.2749, allocations: 7.984 kB / 439 MB, free: 15.54 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.0001541/0.275, allocations: 133.8 kB / 439.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.696e-05/0.2751, allocations: 23.86 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004244/0.2755, allocations: 182.9 kB / 439.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.2755, allocations: 7.938 kB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2755, allocations: 0 / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2756, allocations: 7.984 kB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000502/0.2761, allocations: 244.5 kB / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.2761, allocations: 0 / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.2762, allocations: 35.97 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.2763, allocations: 4 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.2763, allocations: 4 kB / 439.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.2763, allocations: 7.938 kB / 439.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2763, allocations: 0 / 439.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005939/0.2769, allocations: 473.8 kB / 440.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.801e-05/0.2769, allocations: 27.78 kB / 440.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.277, allocations: 8.062 kB / 440.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.2771, allocations: 4 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.705e-05/0.2772, allocations: 15.97 kB / 440.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.2772, allocations: 7.938 kB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000174/0.2774, allocations: 173.2 kB / 440.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2774, allocations: 7.938 kB / 440.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.2778, allocations: 35.94 kB / 440.3 MB, free: 14.09 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.0009635/0.2787, allocations: 1.01 MB / 441.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003453/0.2791, allocations: 107.9 kB / 441.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2791, allocations: 0 / 441.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.2792, allocations: 63.84 kB / 441.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.2796, allocations: 12.5 kB / 441.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.2832, allocations: 2.586 MB / 444.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.2836, allocations: 0.7398 MB / 444.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.001e-05/0.2837, allocations: 21.47 kB / 444.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.2838, allocations: 75.41 kB / 444.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2838, allocations: 3.938 kB / 444.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.3149, allocations: 3.783 MB / 448.7 MB, free: 5.586 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.42/8.735, allocations: 7.375 kB / 448.7 MB, free: 5.582 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.13851256063208] Failed to read output from testmodel.py, exit status != 0: ['time', 'sine.y', 'sinAM.y', 'cosAM.y', 'sinFM.y', 'cosFM.y'] 8.807170716114342 8.824340538 8.551143609 Calling exit ...