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.001152/0.001152, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 199.9 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.356/1.356, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.83 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3167, allocations: 50.54 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01259/0.3294, allocations: 12.17 MB / 420.9 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006882/0.3363, allocations: 3.308 MB / 424.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.3383, allocations: 35.94 kB / 424.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00195/0.3403, allocations: 0.6829 MB / 425 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002352/0.3426, allocations: 0.7911 MB / 425.8 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000802/0.3434, allocations: 399.5 kB / 426.1 MB, free: 108 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002307/0.3458, allocations: 2.416 MB / 428.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001262/0.347, allocations: 0.9969 MB / 429.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.3484, allocations: 0.9183 MB / 430.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000996/0.3494, allocations: 0.9723 MB / 431.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002533/0.3496, allocations: 231.9 kB / 431.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004153/0.35, allocations: 268 kB / 431.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003074/0.3504, allocations: 466.3 kB / 432.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008845/0.3513, allocations: 1.077 MB / 433.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002649/0.3539, allocations: 2.84 MB / 436.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3539, allocations: 0 / 436.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3539, allocations: 0 / 436.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.067e-05/0.354, allocations: 4 kB / 436.3 MB, free: 5.852 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.003476/0.3575, allocations: 2.209 MB / 438.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3575, allocations: 8.031 kB / 438.5 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002399/0.3577, allocations: 224.1 kB / 438.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000839/0.3586, allocations: 291.5 kB / 439 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.3604, allocations: 1.135 MB / 440.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.466e-05/0.3605, allocations: 127.2 kB / 440.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002071/0.3607, allocations: 163.8 kB / 440.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002437/0.3631, allocations: 1.5 MB / 442 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.145e-05/0.3632, allocations: 12 kB / 442 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.3633, allocations: 67.98 kB / 442 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.3634, allocations: 36 kB / 442.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001933/0.3653, allocations: 1.045 MB / 443.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007153/0.3725, allocations: 6.247 MB / 449.4 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.374, allocations: 0.6114 MB / 450 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008862/0.3749, allocations: 465.8 kB / 450.4 MB, free: 7.234 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.3749, allocations: 12.7 kB / 450.4 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.375, allocations: 43.06 kB / 450.5 MB, free: 7.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.384e-06/0.375, allocations: 0 / 450.5 MB, free: 7.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004736/0.3797, allocations: 2.398 MB / 452.9 MB, free: 4.688 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.3798, allocations: 111.5 kB / 453 MB, free: 4.555 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.3814, allocations: 1.31 MB / 454.3 MB, free: 3.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.3815, allocations: 33.7 kB / 454.3 MB, free: 3.191 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005559/0.382, allocations: 0.871 MB / 455.2 MB, free: 2.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.3822, allocations: 277.7 kB / 455.5 MB, free: 2.039 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002509/0.3825, allocations: 206.8 kB / 455.7 MB, free: 1.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3826, allocations: 345.9 kB / 456 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005705/0.3832, allocations: 286.5 kB / 456.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008468/0.384, allocations: 0.7381 MB / 457 MB, free: 260 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.3856, allocations: 1.096 MB / 458.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.3856, allocations: 4 kB / 458.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002391/0.388, allocations: 1.264 MB / 459.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.388, allocations: 12.5 kB / 459.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/0.3881, allocations: 20 kB / 459.4 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005045/0.3886, allocations: 130.4 kB / 459.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008312/0.3894, allocations: 255.6 kB / 459.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004444/0.3939, allocations: 4.638 MB / 464.4 MB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.395, allocations: 59.94 kB / 464.5 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.3951, allocations: 59.98 kB / 464.6 MB, free: 8.066 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.0007041/0.3958, allocations: 361.3 kB / 464.9 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/0.3961, allocations: 139.1 kB / 465 MB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.398, allocations: 0.8334 MB / 465.9 MB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.398, allocations: 15.88 kB / 465.9 MB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.398, allocations: 4 kB / 465.9 MB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.398, allocations: 3.984 kB / 465.9 MB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004291/0.4023, allocations: 2.331 MB / 468.2 MB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.657e-06/0.4023, allocations: 11.97 kB / 468.2 MB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005924/0.4029, allocations: 123.9 kB / 468.4 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004872/0.4034, allocations: 142.3 kB / 468.5 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.197e-05/0.4035, allocations: 16 kB / 468.5 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004871/0.4084, allocations: 4.787 MB / 473.3 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4084, allocations: 7.984 kB / 473.3 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002602/0.411, allocations: 1.301 MB / 474.6 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007463/0.4118, allocations: 296 kB / 474.9 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003278/0.4121, allocations: 16 kB / 474.9 MB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007536/0.4129, allocations: 43.97 kB / 475 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.413, allocations: 60.36 kB / 475 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.4131, allocations: 24 kB / 475 MB, free: 12.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001634/0.4147, allocations: 0.8781 MB / 475.9 MB, free: 12.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4147, allocations: 0 / 475.9 MB, free: 12.03 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001735/0.4165, allocations: 328 kB / 476.2 MB, free: 11.71 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.003309/0.4198, allocations: 1.889 MB / 478.1 MB, free: 9.734 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.4221, allocations: 1.128 MB / 479.3 MB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.4221, allocations: 0.875 kB / 479.3 MB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.4232, allocations: 0.7023 MB / 480 MB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/0.4252, allocations: 372.1 kB / 480.3 MB, free: 7.473 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01987/0.4451, allocations: 11.74 MB / 492.1 MB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000996/0.4461, allocations: 1.214 MB / 493.3 MB, free: 9.785 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006453/0.4468, allocations: 171.6 kB / 493.4 MB, free: 9.613 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007901/0.4476, allocations: 0.6164 MB / 494.1 MB, free: 8.996 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4476, allocations: 0 / 494.1 MB, free: 8.996 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07627/0.5239, allocations: 31.18 MB / 0.5129 GB, free: 10.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.85/14.37, allocations: 11.55 kB / 0.5129 GB, free: 10.17 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.0.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