Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.00197/0.00197, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.002833/0.002833, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 71.84 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.305, allocations: 53.4 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003497/0.3085, allocations: 2.028 MB / 433.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.3097, allocations: 0.6504 MB / 433.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.3099, allocations: 11.94 kB / 433.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.3101, allocations: 39.53 kB / 433.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.328e-05/0.3102, allocations: 31.61 kB / 433.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.3105, allocations: 91.7 kB / 434 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002781/0.3107, allocations: 207.2 kB / 434.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.311, allocations: 52.55 kB / 434.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001777/0.3111, allocations: 79.66 kB / 434.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.3113, allocations: 91.48 kB / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.3113, allocations: 12 kB / 434.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.604e-05/0.3114, allocations: 16 kB / 434.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.424e-05/0.3114, allocations: 31.86 kB / 434.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.448e-05/0.3115, allocations: 83.47 kB / 434.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.3117, allocations: 183.5 kB / 434.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3117, allocations: 4 kB / 434.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3117, allocations: 0 / 434.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.3117, allocations: 0 / 434.8 MB, free: 3.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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007109/0.3125, allocations: 437.1 kB / 435.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.741e-05/0.3125, allocations: 8.031 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.47e-05/0.3126, allocations: 46.73 kB / 435.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.3128, allocations: 44.77 kB / 435.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.3132, allocations: 186.1 kB / 435.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.3132, allocations: 8.375 kB / 435.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.3132, allocations: 20.31 kB / 435.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/0.3136, allocations: 164.2 kB / 435.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3136, allocations: 0 / 435.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.3136, allocations: 4 kB / 435.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3136, allocations: 7.984 kB / 435.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.3138, allocations: 95.39 kB / 435.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009978/0.3148, allocations: 0.6051 MB / 436.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.3151, allocations: 127.8 kB / 436.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3152, allocations: 54.69 kB / 436.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.3153, allocations: 7.938 kB / 436.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.3153, allocations: 34.56 kB / 436.6 MB, free: 1.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 7.363e-06/0.3153, allocations: 4 kB / 436.6 MB, free: 1.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004924/0.3158, allocations: 177.4 kB / 436.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.3159, allocations: 106.8 kB / 436.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.3161, allocations: 237.9 kB / 437.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.3161, allocations: 25.7 kB / 437.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.815e-05/0.3162, allocations: 140.1 kB / 437.3 MB, free: 360 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.15e-05/0.3163, allocations: 47.66 kB / 437.3 MB, free: 312 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.964e-05/0.3163, allocations: 41.7 kB / 437.4 MB, free: 264 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.3165, allocations: 334.8 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.3166, allocations: 39.97 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.3168, allocations: 93.19 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003083/0.3171, allocations: 146.7 kB / 438 MB, free: 15.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.3171, allocations: 7.875 kB / 438 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003466/0.3174, allocations: 177.4 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3174, allocations: 4 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.3174, allocations: 7.984 kB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3175, allocations: 3.984 kB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.3176, allocations: 40.16 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3176, allocations: 0 / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.3178, allocations: 23.88 kB / 438.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.3178, allocations: 8 kB / 438.2 MB, free: 15.33 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.0001242/0.3179, allocations: 133.7 kB / 438.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.573e-05/0.318, allocations: 19.86 kB / 438.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003921/0.3184, allocations: 186.9 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3184, allocations: 4 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3184, allocations: 4.5 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3184, allocations: 3.938 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004785/0.3189, allocations: 248.4 kB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3189, allocations: 0 / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.319, allocations: 39.98 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.3191, allocations: 0 / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.3191, allocations: 7.984 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3191, allocations: 0 / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3191, allocations: 4 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006066/0.3197, allocations: 477.2 kB / 439.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.128e-05/0.3197, allocations: 23.81 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.3198, allocations: 4.062 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.3199, allocations: 15.98 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.32, allocations: 15.97 kB / 439.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.32, allocations: 4 kB / 439.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001631/0.3202, allocations: 173.2 kB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3202, allocations: 0 / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003516/0.3205, allocations: 35.94 kB / 439.6 MB, free: 13.88 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.0009324/0.3214, allocations: 1.004 MB / 440.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003084/0.3217, allocations: 110.3 kB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3218, allocations: 4.125 kB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.3219, allocations: 64.2 kB / 440.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.3223, allocations: 16.5 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.3256, allocations: 2.597 MB / 443.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.326, allocations: 0.7398 MB / 444.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.227e-05/0.3261, allocations: 21.47 kB / 444.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3262, allocations: 75.41 kB / 444.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3262, allocations: 0 / 444.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03829/0.3645, allocations: 3.88 MB / 448.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.34, allocations: 8.609 kB / 448.1 MB, free: 5.277 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Modulation.fmu > Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.033206412103027]