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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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: translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation") translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001656/0.001656, allocations: 113.4 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.458/1.458, allocations: 230.4 MB / 251.1 MB, free: 8.438 MB / 206.1 MB 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.002051/0.002051, allocations: 71.83 kB / 368.9 MB, free: 6.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2919, allocations: 53.31 MB / 422.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003042/0.295, allocations: 2.012 MB / 424.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.2961, allocations: 0.6505 MB / 424.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.774e-05/0.2962, allocations: 0 / 424.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.2963, allocations: 43.53 kB / 425 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.699e-05/0.2964, allocations: 43.58 kB / 425 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003269/0.2967, allocations: 83.78 kB / 425.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.297, allocations: 207.2 kB / 425.3 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.2972, allocations: 48.38 kB / 425.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001672/0.2973, allocations: 79.62 kB / 425.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.2975, allocations: 83.56 kB / 425.5 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.2975, allocations: 12 kB / 425.5 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.24e-05/0.2975, allocations: 23.94 kB / 425.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.514e-05/0.2976, allocations: 35.84 kB / 425.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.635e-05/0.2976, allocations: 83.42 kB / 425.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.2979, allocations: 186.5 kB / 425.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2979, allocations: 0 / 425.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2979, allocations: 0 / 425.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.2979, allocations: 0 / 425.8 MB, free: 4.219 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.0007082/0.2986, allocations: 0.4934 MB / 426.3 MB, free: 3.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2986, allocations: 12.03 kB / 426.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002334/0.2989, allocations: 44.77 kB / 426.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.2992, allocations: 255.8 kB / 426.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.2992, allocations: 8.375 kB / 426.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.2992, allocations: 12.38 kB / 426.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003095/0.2996, allocations: 168.4 kB / 426.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.2996, allocations: 4 kB / 426.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.2996, allocations: 4 kB / 426.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2996, allocations: 4 kB / 426.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.2998, allocations: 87.88 kB / 426.9 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009554/0.3008, allocations: 0.6413 MB / 427.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.301, allocations: 135.7 kB / 427.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3011, allocations: 54.62 kB / 427.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.3012, allocations: 11.98 kB / 427.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.3012, allocations: 30.56 kB / 427.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.3012, allocations: 3.938 kB / 427.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004952/0.3017, allocations: 177.4 kB / 428 MB, free: 1.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.3017, allocations: 110.9 kB / 428.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002513/0.302, allocations: 238.6 kB / 428.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.302, allocations: 29.7 kB / 428.3 MB, free: 1.473 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.774e-05/0.3021, allocations: 140 kB / 428.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.811e-05/0.3022, allocations: 47.59 kB / 428.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.135e-05/0.3022, allocations: 29.7 kB / 428.5 MB, free: 1.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3024, allocations: 338.8 kB / 428.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.3025, allocations: 39.97 kB / 428.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.3026, allocations: 90.84 kB / 429 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002568/0.3029, allocations: 146.7 kB / 429.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.3029, allocations: 0 / 429.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003525/0.3032, allocations: 185.2 kB / 429.3 MB, free: 412 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3033, allocations: 8 kB / 429.3 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3033, allocations: 0 / 429.3 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3033, allocations: 4 kB / 429.3 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.3034, allocations: 31.97 kB / 429.4 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3034, allocations: 4 kB / 429.4 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.3036, allocations: 24.44 kB / 429.4 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.3036, allocations: 4 kB / 429.4 MB, free: 336 kB / 334.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.0001135/0.3037, allocations: 141.8 kB / 429.5 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.246e-05/0.3038, allocations: 23.86 kB / 429.6 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004065/0.3042, allocations: 182.8 kB / 429.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.3042, allocations: 8.016 kB / 429.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.3042, allocations: 8 kB / 429.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3042, allocations: 0 / 429.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004807/0.3047, allocations: 273.4 kB / 430 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3047, allocations: 4 kB / 430 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.3049, allocations: 27.98 kB / 430 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.3049, allocations: 7.984 kB / 430.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.3049, allocations: 4 kB / 430.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.3049, allocations: 7.938 kB / 430.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3049, allocations: 0 / 430.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005658/0.3054, allocations: 477.7 kB / 430.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.3055, allocations: 100.9 kB / 430.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.3056, allocations: 12.05 kB / 430.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.3057, allocations: 4 kB / 430.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.961e-05/0.3058, allocations: 11.98 kB / 430.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.3058, allocations: 4 kB / 430.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001704/0.306, allocations: 186 kB / 430.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.306, allocations: 0 / 430.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003409/0.3063, allocations: 31.94 kB / 430.9 MB, free: 14.74 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.0001195/0.3064, allocations: 99.19 kB / 431 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000321/0.3067, allocations: 114.8 kB / 431.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3067, allocations: 4.312 kB / 431.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.3069, allocations: 63.91 kB / 431.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.3073, allocations: 12.56 kB / 431.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.3084, allocations: 0.6347 MB / 431.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.3087, allocations: 0.7474 MB / 432.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.686e-05/0.3088, allocations: 21.55 kB / 432.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.899e-05/0.3089, allocations: 23.42 kB / 432.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3089, allocations: 0 / 432.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Templates: time 0.004559/0.3134, allocations: 1.399 MB / 434 MB, free: 11.57 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.makefile [Timeout 660] (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 & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches