Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 108.4 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 198.8 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 43.94 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3068, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003279/0.3101, allocations: 2 MB / 402.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009801/0.3111, allocations: 0.5726 MB / 402.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.3112, allocations: 3.938 kB / 402.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.3114, allocations: 31.61 kB / 402.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.943e-05/0.3115, allocations: 39.59 kB / 402.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.3118, allocations: 67.86 kB / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002432/0.3121, allocations: 207.2 kB / 403.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.3123, allocations: 72.36 kB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.3124, allocations: 79.64 kB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.3125, allocations: 75.56 kB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.3126, allocations: 15.98 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.517e-05/0.3126, allocations: 12 kB / 403.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.872e-05/0.3126, allocations: 35.86 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.165e-05/0.3127, allocations: 83.47 kB / 403.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.313, allocations: 178.2 kB / 403.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.313, allocations: 4 kB / 403.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.313, allocations: 0 / 403.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.313, allocations: 0 / 403.7 MB, free: 5.336 MB / 318.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.0007076/0.3137, allocations: 498.3 kB / 404.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3138, allocations: 12.03 kB / 404.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.74e-05/0.3138, allocations: 46.73 kB / 404.2 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.838e-05/0.3139, allocations: 24.8 kB / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002569/0.3141, allocations: 239.9 kB / 404.5 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.3142, allocations: 20.12 kB / 404.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.3142, allocations: 15.98 kB / 404.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.3145, allocations: 168.6 kB / 404.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3145, allocations: 0 / 404.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.3146, allocations: 11.94 kB / 404.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3146, allocations: 0 / 404.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.3148, allocations: 91.88 kB / 404.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009052/0.3157, allocations: 0.645 MB / 405.4 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.316, allocations: 131.8 kB / 405.6 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.3161, allocations: 54.67 kB / 405.6 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.3161, allocations: 4 kB / 405.6 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.3162, allocations: 38.5 kB / 405.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.263e-06/0.3162, allocations: 0 / 405.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004907/0.3167, allocations: 177.4 kB / 405.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.3167, allocations: 102.8 kB / 405.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.317, allocations: 233 kB / 406.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.317, allocations: 29.7 kB / 406.2 MB, free: 2.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.126e-05/0.3171, allocations: 136.2 kB / 406.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.3172, allocations: 47.58 kB / 406.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.558e-05/0.3172, allocations: 33.7 kB / 406.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3174, allocations: 338.8 kB / 406.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.3175, allocations: 31.98 kB / 406.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.3176, allocations: 105.4 kB / 406.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.3179, allocations: 138.8 kB / 407 MB, free: 1.691 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3179, allocations: 0 / 407 MB, free: 1.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003263/0.3182, allocations: 189.2 kB / 407.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3182, allocations: 4 kB / 407.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3183, allocations: 4 kB / 407.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3183, allocations: 4.188 kB / 407.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.3184, allocations: 39.91 kB / 407.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.3185, allocations: 0 / 407.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.3186, allocations: 19.89 kB / 407.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.3186, allocations: 7.984 kB / 407.3 MB, free: 1.422 MB / 318.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.0001183/0.3187, allocations: 133.7 kB / 407.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.468e-05/0.3188, allocations: 23.86 kB / 407.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003822/0.3192, allocations: 183.4 kB / 407.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3192, allocations: 0 / 407.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3192, allocations: 4 kB / 407.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3192, allocations: 3.984 kB / 407.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004546/0.3197, allocations: 273.5 kB / 407.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3197, allocations: 4 kB / 407.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000193/0.3199, allocations: 39.89 kB / 407.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3199, allocations: 7.938 kB / 407.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.3199, allocations: 4 kB / 407.9 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3199, allocations: 11.94 kB / 407.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.32, allocations: 0 / 407.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005391/0.3205, allocations: 463.4 kB / 408.4 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.868e-05/0.3206, allocations: 109 kB / 408.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.159e-05/0.3206, allocations: 11.94 kB / 408.5 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.3208, allocations: 8 kB / 408.5 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/0.3209, allocations: 15.91 kB / 408.5 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.3209, allocations: 8 kB / 408.5 MB, free: 44 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.3211, allocations: 168.5 kB / 408.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3211, allocations: 0 / 408.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003403/0.3214, allocations: 32 kB / 408.7 MB, free: 15.84 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.0008003/0.3222, allocations: 1.011 MB / 409.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002974/0.3225, allocations: 118 kB / 409.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3225, allocations: 0 / 409.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.3227, allocations: 67.89 kB / 409.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004033/0.3231, allocations: 16.38 kB / 409.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002842/0.3259, allocations: 2.579 MB / 412.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.3263, allocations: 0.7319 MB / 413.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.109e-05/0.3263, allocations: 21.55 kB / 413.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.3264, allocations: 75.41 kB / 413.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3264, allocations: 0 / 413.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.3486, allocations: 3.592 MB / 416.9 MB, free: 7.512 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.869/8.218, allocations: 22.97 kB / 417 MB, free: 7.492 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv","/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_4.0.0_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches