Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001425/0.001425, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00147/0.00147, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 67.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2926, allocations: 50.54 MB / 408.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01528/0.3079, allocations: 12.16 MB / 420.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00686/0.3148, allocations: 3.311 MB / 424.2 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001704/0.3166, allocations: 39.88 kB / 424.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.3187, allocations: 0.6634 MB / 424.9 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002296/0.321, allocations: 0.7286 MB / 425.7 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008953/0.3219, allocations: 403.5 kB / 426.1 MB, free: 204 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003117/0.3251, allocations: 2.405 MB / 428.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001492/0.3266, allocations: 1.001 MB / 429.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001485/0.3281, allocations: 0.8988 MB / 430.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.3294, allocations: 0.9839 MB / 431.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003595/0.3298, allocations: 232 kB / 431.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005278/0.3303, allocations: 267.9 kB / 431.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003969/0.3307, allocations: 458.4 kB / 432.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001134/0.3318, allocations: 1.077 MB / 433.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003277/0.3351, allocations: 2.837 MB / 436.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3352, allocations: 4 kB / 436.2 MB, free: 5.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3352, allocations: 3.938 kB / 436.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.6e-05/0.3352, allocations: 0 / 436.2 MB, free: 5.965 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003949/0.3392, allocations: 2.216 MB / 438.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.3392, allocations: 8.031 kB / 438.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002888/0.3395, allocations: 224.1 kB / 438.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009197/0.3404, allocations: 295.5 kB / 438.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001884/0.3423, allocations: 1.128 MB / 440.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.3425, allocations: 123.2 kB / 440.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002274/0.3427, allocations: 159.9 kB / 440.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002596/0.3453, allocations: 1.508 MB / 441.9 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.238e-05/0.3454, allocations: 11.98 kB / 441.9 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.3455, allocations: 64 kB / 441.9 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.261e-05/0.3456, allocations: 36 kB / 442 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002142/0.3477, allocations: 1.049 MB / 443 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009115/0.3568, allocations: 6.244 MB / 449.3 MB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/0.3585, allocations: 0.6194 MB / 449.9 MB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009535/0.3594, allocations: 462.1 kB / 450.3 MB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.3595, allocations: 8.562 kB / 450.3 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.055e-05/0.3596, allocations: 47.11 kB / 450.4 MB, free: 7.277 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.776e-06/0.3596, allocations: 3.938 kB / 450.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005218/0.3648, allocations: 2.391 MB / 452.8 MB, free: 4.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.315e-05/0.3649, allocations: 111.5 kB / 452.9 MB, free: 4.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/0.367, allocations: 1.314 MB / 454.2 MB, free: 3.336 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.619e-05/0.367, allocations: 37.7 kB / 454.2 MB, free: 3.293 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007787/0.3678, allocations: 0.871 MB / 455.1 MB, free: 2.414 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.3681, allocations: 265.8 kB / 455.4 MB, free: 2.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003224/0.3684, allocations: 210.8 kB / 455.6 MB, free: 1.941 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.3686, allocations: 349.9 kB / 455.9 MB, free: 1.594 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005929/0.3692, allocations: 282.4 kB / 456.2 MB, free: 1.316 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009836/0.3702, allocations: 0.7343 MB / 456.9 MB, free: 376 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/0.3719, allocations: 1.092 MB / 458 MB, free: 15.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.3719, allocations: 4 kB / 458 MB, free: 15.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002632/0.3745, allocations: 1.265 MB / 459.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.3746, allocations: 12 kB / 459.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/0.3746, allocations: 20.03 kB / 459.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005261/0.3751, allocations: 126.5 kB / 459.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000863/0.376, allocations: 267.5 kB / 459.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004669/0.3807, allocations: 4.634 MB / 464.3 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.3819, allocations: 63.92 kB / 464.4 MB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.382, allocations: 56 kB / 464.5 MB, free: 8.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006757/0.3827, allocations: 357.5 kB / 464.8 MB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002285/0.3829, allocations: 147.1 kB / 464.9 MB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/0.3848, allocations: 0.8411 MB / 465.8 MB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.3848, allocations: 11.94 kB / 465.8 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3848, allocations: 4.125 kB / 465.8 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3848, allocations: 3.984 kB / 465.8 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.3888, allocations: 2.323 MB / 468.1 MB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.3889, allocations: 4 kB / 468.1 MB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005929/0.3895, allocations: 127.8 kB / 468.3 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004553/0.3899, allocations: 138.5 kB / 468.4 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.39, allocations: 23.92 kB / 468.4 MB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004673/0.3947, allocations: 4.792 MB / 473.2 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/0.3947, allocations: 7.938 kB / 473.2 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.3971, allocations: 1.297 MB / 474.5 MB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005243/0.3977, allocations: 292 kB / 474.8 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.3978, allocations: 20 kB / 474.8 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006366/0.3985, allocations: 43.95 kB / 474.9 MB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.3986, allocations: 56.38 kB / 474.9 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-05/0.3987, allocations: 27.98 kB / 474.9 MB, free: 13.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001343/0.4, allocations: 0.8781 MB / 475.8 MB, free: 12.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4, allocations: 0 / 475.8 MB, free: 12.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001244/0.4013, allocations: 332 kB / 476.1 MB, free: 11.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002933/0.4042, allocations: 1.881 MB / 478 MB, free: 9.852 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.4064, allocations: 1.132 MB / 479.2 MB, free: 8.676 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4064, allocations: 0.9375 kB / 479.2 MB, free: 8.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.4075, allocations: 0.7061 MB / 479.9 MB, free: 7.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.4091, allocations: 363.8 kB / 480.2 MB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01925/0.4283, allocations: 11.74 MB / 492 MB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000982/0.4294, allocations: 1.214 MB / 493.2 MB, free: 9.902 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007192/0.4301, allocations: 175.6 kB / 493.3 MB, free: 9.727 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008105/0.4309, allocations: 0.6125 MB / 494 MB, free: 9.113 MB / 414.1 MB Notification: Performance of SimCode: time 1.163e-06/0.4309, allocations: 0 / 494 MB, free: 9.113 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08102/0.5119, allocations: 31.19 MB / 0.5128 GB, free: 10.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.42/15.93, allocations: 7.969 kB / 0.5128 GB, free: 10.28 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches