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.00128/0.00128, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001226/0.001226, allocations: 200 kB / 18.01 MB, free: 5.047 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.554/1.554, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3347, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003459/0.3382, allocations: 1.993 MB / 402.2 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.3393, allocations: 0.5764 MB / 402.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.3394, allocations: 4 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.3396, allocations: 39.53 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.56e-05/0.3397, allocations: 35.59 kB / 402.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.34, allocations: 71.86 kB / 402.9 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.3402, allocations: 195.3 kB / 403.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.3405, allocations: 72.36 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.3406, allocations: 83.64 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.3407, allocations: 75.56 kB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.3408, allocations: 12 kB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.973e-05/0.3408, allocations: 12 kB / 403.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.414e-05/0.3409, allocations: 39.84 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.49e-05/0.341, allocations: 87.41 kB / 403.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.3412, allocations: 170.3 kB / 403.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3412, allocations: 4 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3412, allocations: 0 / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3412, allocations: 0 / 403.7 MB, free: 5.359 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.0007589/0.342, allocations: 0.4905 MB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.3421, allocations: 12.03 kB / 404.2 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.525e-05/0.3421, allocations: 42.75 kB / 404.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.816e-05/0.3422, allocations: 24.8 kB / 404.2 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.3425, allocations: 235.9 kB / 404.5 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.3425, allocations: 16.12 kB / 404.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.593e-05/0.3425, allocations: 19.94 kB / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003342/0.3429, allocations: 176.5 kB / 404.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.3429, allocations: 0 / 404.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.3429, allocations: 4 kB / 404.7 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3429, allocations: 4 kB / 404.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.3432, allocations: 95.88 kB / 404.8 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009992/0.3442, allocations: 0.6372 MB / 405.4 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/0.3444, allocations: 127.8 kB / 405.5 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.3446, allocations: 54.62 kB / 405.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.3446, allocations: 0 / 405.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.3447, allocations: 46.55 kB / 405.6 MB, free: 3.176 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.3447, allocations: 0 / 405.6 MB, free: 3.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005097/0.3452, allocations: 177.4 kB / 405.8 MB, free: 2.996 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/0.3453, allocations: 106.8 kB / 405.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.3455, allocations: 229 kB / 406.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.3455, allocations: 33.7 kB / 406.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.3456, allocations: 136.2 kB / 406.3 MB, free: 2.457 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.04e-05/0.3457, allocations: 47.56 kB / 406.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.3458, allocations: 37.7 kB / 406.4 MB, free: 2.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3459, allocations: 334.8 kB / 406.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.3461, allocations: 39.97 kB / 406.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.3462, allocations: 90.84 kB / 406.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/0.3465, allocations: 147.2 kB / 407 MB, free: 1.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3465, allocations: 0 / 407 MB, free: 1.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000354/0.3469, allocations: 185.3 kB / 407.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.3469, allocations: 8 kB / 407.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3469, allocations: 0 / 407.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.3469, allocations: 8.188 kB / 407.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.3471, allocations: 39.97 kB / 407.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3471, allocations: 0 / 407.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.3472, allocations: 19.88 kB / 407.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.3472, allocations: 4 kB / 407.3 MB, free: 1.445 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.0001205/0.3474, allocations: 133.7 kB / 407.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.92e-05/0.3474, allocations: 23.86 kB / 407.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004259/0.3479, allocations: 194.8 kB / 407.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3479, allocations: 0 / 407.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.3479, allocations: 7.938 kB / 407.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3479, allocations: 0 / 407.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004853/0.3484, allocations: 277.4 kB / 407.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3484, allocations: 0 / 407.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.3486, allocations: 27.98 kB / 407.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.3486, allocations: 4 kB / 407.9 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.3486, allocations: 7.984 kB / 407.9 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3487, allocations: 7.938 kB / 407.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3487, allocations: 4 kB / 407.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00059/0.3493, allocations: 471.4 kB / 408.4 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.659e-05/0.3493, allocations: 100.9 kB / 408.5 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.3494, allocations: 8.062 kB / 408.5 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.3496, allocations: 11.98 kB / 408.5 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.3496, allocations: 15.92 kB / 408.5 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.3497, allocations: 4 kB / 408.5 MB, free: 72 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001752/0.3498, allocations: 172.5 kB / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3498, allocations: 0 / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.3502, allocations: 32 kB / 408.7 MB, free: 15.87 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.0008793/0.3511, allocations: 1.002 MB / 409.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003169/0.3514, allocations: 120 kB / 409.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3514, allocations: 0 / 409.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.3516, allocations: 63.91 kB / 409.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.352, allocations: 20.38 kB / 409.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.3551, allocations: 2.579 MB / 412.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.3555, allocations: 0.7358 MB / 413.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.496e-05/0.3556, allocations: 29.52 kB / 413.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.3557, allocations: 71.41 kB / 413.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3557, allocations: 0 / 413.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02767/0.3834, allocations: 3.603 MB / 416.9 MB, free: 7.531 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.171/8.554, allocations: 19.69 kB / 417 MB, free: 7.512 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