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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001239, allocations: 117.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 67.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3191, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.002904/0.322, allocations: 1.996 MB / 410.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.3231, allocations: 0.6388 MB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.3232, allocations: 4 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.3234, allocations: 43.53 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.442e-05/0.3235, allocations: 39.59 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002625/0.3237, allocations: 79.84 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002297/0.324, allocations: 211.2 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.3241, allocations: 80.28 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.3243, allocations: 83.7 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.3244, allocations: 75.56 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.3245, allocations: 15.94 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.707e-05/0.3245, allocations: 16 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.093e-05/0.3246, allocations: 39.78 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.275e-05/0.3247, allocations: 83.47 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.3249, allocations: 181 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3249, allocations: 0 / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3249, allocations: 0 / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.3249, allocations: 0 / 412.3 MB, free: 13.97 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.0006713/0.3256, allocations: 498.5 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.3256, allocations: 11.97 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.36e-05/0.3257, allocations: 46.73 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/0.3259, allocations: 44.62 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.3262, allocations: 251.6 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.3262, allocations: 12.31 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.3263, allocations: 20.38 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.3266, allocations: 164.3 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.3266, allocations: 0 / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.3266, allocations: 4 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.3266, allocations: 4 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002224/0.3269, allocations: 95.33 kB / 413.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008943/0.3278, allocations: 0.645 MB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002375/0.328, allocations: 135.8 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.3281, allocations: 50.69 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.3282, allocations: 4 kB / 414.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.3282, allocations: 38.55 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.3282, allocations: 4 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004915/0.3287, allocations: 169.4 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.3288, allocations: 106.8 kB / 414.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.329, allocations: 242.6 kB / 414.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.329, allocations: 25.7 kB / 414.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.77e-05/0.3291, allocations: 140 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.668e-05/0.3292, allocations: 51.38 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.505e-05/0.3293, allocations: 29.7 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3295, allocations: 338.8 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.3296, allocations: 39.97 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.3297, allocations: 90.84 kB / 415.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.33, allocations: 150.7 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.33, allocations: 3.938 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003287/0.3303, allocations: 181.2 kB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.3304, allocations: 8 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3304, allocations: 0 / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3304, allocations: 4 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.3305, allocations: 32.17 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.3306, allocations: 7.938 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.3307, allocations: 23.83 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.3307, allocations: 4.562 kB / 415.9 MB, free: 10.03 MB / 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.0001061/0.3308, allocations: 137.7 kB / 416.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.647e-05/0.3309, allocations: 27.7 kB / 416.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003779/0.3313, allocations: 182.8 kB / 416.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3313, allocations: 0 / 416.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.3313, allocations: 4 kB / 416.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3313, allocations: 0 / 416.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004332/0.3317, allocations: 277.5 kB / 416.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3318, allocations: 0 / 416.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.3319, allocations: 39.91 kB / 416.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.332, allocations: 7.938 kB / 416.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.332, allocations: 0 / 416.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.332, allocations: 4 kB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.332, allocations: 8.094 kB / 416.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005235/0.3325, allocations: 481.9 kB / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.939e-05/0.3326, allocations: 96.84 kB / 417.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.3326, allocations: 8.062 kB / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.3328, allocations: 12 kB / 417.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.3329, allocations: 7.984 kB / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.3329, allocations: 7.984 kB / 417.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.333, allocations: 178 kB / 417.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.333, allocations: 0 / 417.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003524/0.3334, allocations: 31.91 kB / 417.4 MB, free: 8.449 MB / 334.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.0007489/0.3341, allocations: 1.003 MB / 418.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003118/0.3345, allocations: 112.2 kB / 418.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3345, allocations: 4.062 kB / 418.5 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.3346, allocations: 59.91 kB / 418.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.335, allocations: 24.48 kB / 418.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.3379, allocations: 2.577 MB / 421.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3382, allocations: 0.7398 MB / 421.9 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.774e-05/0.3382, allocations: 21.53 kB / 421.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.3383, allocations: 75.41 kB / 422 MB, free: 3.645 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3384, allocations: 0 / 422 MB, free: 3.645 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02324/0.3616, allocations: 3.746 MB / 425.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.976/8.338, allocations: 7.172 kB / 425.8 MB, free: 15.95 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Modulation.fmu > Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches