Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",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.001285/0.001285, allocations: 111.6 kB / 17.06 MB, free: 6 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.001356/0.001356, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.28/1.28, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 59.84 kB / 350.9 MB, free: 3.66 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.228, allocations: 49.42 MB / 400.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01063/0.2387, allocations: 9.653 MB / 409.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005966/0.2447, allocations: 3.556 MB / 413.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001146/0.2459, allocations: 47.81 kB / 413.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001835/0.2477, allocations: 0.6598 MB / 414.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002292/0.25, allocations: 0.8271 MB / 415 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.2512, allocations: 466.5 kB / 415.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002938/0.2542, allocations: 2.635 MB / 418.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002329/0.2565, allocations: 1.877 MB / 420 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00155/0.2581, allocations: 1.183 MB / 421.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002123/0.2602, allocations: 1.506 MB / 422.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006181/0.2608, allocations: 304 kB / 423 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.2621, allocations: 0.5659 MB / 423.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001126/0.2632, allocations: 1.025 MB / 424.6 MB, free: 332 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001905/0.2651, allocations: 1.485 MB / 426 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004004/0.2692, allocations: 4.287 MB / 430.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2692, allocations: 4 kB / 430.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2692, allocations: 4 kB / 430.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.452e-05/0.2693, allocations: 4 kB / 430.3 MB, free: 10.52 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.005616/0.2749, allocations: 3.161 MB / 433.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.2749, allocations: 11.97 kB / 433.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004929/0.2754, allocations: 355.4 kB / 433.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000778/0.2762, allocations: 329.2 kB / 434.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.279, allocations: 1.701 MB / 435.9 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.2791, allocations: 152.1 kB / 436 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00031/0.2794, allocations: 219.8 kB / 436.3 MB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004247/0.2837, allocations: 2.723 MB / 439 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.565e-05/0.2838, allocations: 11.94 kB / 439 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001954/0.284, allocations: 80 kB / 439.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.2841, allocations: 100 kB / 439.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003916/0.288, allocations: 2.288 MB / 441.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01229/0.3003, allocations: 8.229 MB / 449.7 MB, free: 6.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002893/0.3032, allocations: 1.615 MB / 451.3 MB, free: 5.031 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.3052, allocations: 1.098 MB / 452.4 MB, free: 3.934 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002523/0.3054, allocations: 130 kB / 452.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.3055, allocations: 47.56 kB / 452.6 MB, free: 3.734 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.196e-06/0.3055, allocations: 4 kB / 452.6 MB, free: 3.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.0132/0.3187, allocations: 6.46 MB / 459 MB, free: 13.13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.3188, allocations: 68.7 kB / 459.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003267/0.3221, allocations: 2.152 MB / 461.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.3222, allocations: 45.7 kB / 461.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008074/0.323, allocations: 1.127 MB / 462.4 MB, free: 9.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003646/0.3234, allocations: 453.4 kB / 462.9 MB, free: 9.211 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004165/0.3238, allocations: 247.4 kB / 463.1 MB, free: 8.965 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.324, allocations: 361.9 kB / 463.5 MB, free: 8.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.3254, allocations: 0.7574 MB / 464.2 MB, free: 7.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.3269, allocations: 1.009 MB / 465.2 MB, free: 6.746 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00287/0.3298, allocations: 1.865 MB / 467.1 MB, free: 4.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3298, allocations: 4 kB / 467.1 MB, free: 4.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005144/0.3349, allocations: 2.757 MB / 469.9 MB, free: 2.012 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.335, allocations: 11.94 kB / 469.9 MB, free: 2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.335, allocations: 4 kB / 469.9 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002052/0.3371, allocations: 0.7853 MB / 470.7 MB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.3382, allocations: 263.6 kB / 470.9 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.3502, allocations: 9.602 MB / 480.5 MB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.3515, allocations: 95.97 kB / 480.6 MB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001918/0.3517, allocations: 47.98 kB / 480.7 MB, free: 6.922 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00127/0.353, allocations: 0.7432 MB / 481.4 MB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004678/0.3535, allocations: 201.6 kB / 481.6 MB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004759/0.3583, allocations: 2.488 MB / 484.1 MB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.083e-05/0.3583, allocations: 20 kB / 484.1 MB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.3583, allocations: 11.98 kB / 484.1 MB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.3584, allocations: 3.984 kB / 484.1 MB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009411/0.3678, allocations: 4.946 MB / 489.1 MB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.3678, allocations: 0 / 489.1 MB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.3689, allocations: 219.6 kB / 489.3 MB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001862/0.3708, allocations: 0.6473 MB / 489.9 MB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.3709, allocations: 35.98 kB / 490 MB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009434/0.3804, allocations: 8.726 MB / 498.7 MB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.3804, allocations: 4.031 kB / 498.7 MB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006217/0.3866, allocations: 3.528 MB / 0.4904 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.3877, allocations: 442.4 kB / 0.4909 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003467/0.3881, allocations: 27.94 kB / 0.4909 GB, free: 276 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.3892, allocations: 87.95 kB / 0.491 GB, free: 188 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/0.3895, allocations: 112.8 kB / 0.4911 GB, free: 76 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.3896, allocations: 35.98 kB / 0.4911 GB, free: 40 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00224/0.3918, allocations: 1.523 MB / 0.4926 GB, free: 14.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3918, allocations: 0 / 0.4926 GB, free: 14.49 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001901/0.3938, allocations: 0.5234 MB / 0.4931 GB, free: 13.97 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007422/0.4012, allocations: 4.466 MB / 0.4975 GB, free: 9.582 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004459/0.4057, allocations: 2.38 MB / 0.4998 GB, free: 7.176 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4057, allocations: 0 / 0.4998 GB, free: 7.176 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002703/0.4084, allocations: 1.594 MB / 0.5014 GB, free: 5.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/0.4109, allocations: 454.3 kB / 0.5018 GB, free: 5.082 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03444/0.4453, allocations: 21.03 MB / 0.5223 GB, free: 15.63 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001845/0.4472, allocations: 1.959 MB / 0.5242 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001149/0.4483, allocations: 395.6 kB / 0.5246 GB, free: 13.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001261/0.4496, allocations: 0.9757 MB / 0.5256 GB, free: 12.27 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4496, allocations: 0 / 0.5256 GB, free: 12.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2452/0.6948, allocations: 51.07 MB / 0.5754 GB, free: 105.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.51/23.21, allocations: 7.984 kB / 0.5755 GB, free: 105.5 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches