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.001535/0.001535, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001625/0.001625, allocations: 198.8 kB / 18.01 MB, free: 4.918 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.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001054, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2471, allocations: 49.44 MB / 400.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01148/0.2586, allocations: 9.646 MB / 409.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006382/0.2651, allocations: 3.553 MB / 413.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001341/0.2664, allocations: 55.75 kB / 413.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002039/0.2685, allocations: 0.6901 MB / 414.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002606/0.2712, allocations: 0.8622 MB / 415.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.2724, allocations: 478.9 kB / 415.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0034/0.2758, allocations: 2.63 MB / 418.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/0.2785, allocations: 1.881 MB / 420.1 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.2802, allocations: 1.191 MB / 421.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00238/0.2826, allocations: 1.502 MB / 422.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007047/0.2833, allocations: 304 kB / 423.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.2847, allocations: 0.5699 MB / 423.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001363/0.2861, allocations: 1.024 MB / 424.7 MB, free: 308 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002087/0.2882, allocations: 1.477 MB / 426.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004201/0.2924, allocations: 4.316 MB / 430.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2924, allocations: 0 / 430.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2924, allocations: 0 / 430.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-05/0.2925, allocations: 0 / 430.4 MB, free: 10.48 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.005527/0.298, allocations: 3.248 MB / 433.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.2981, allocations: 12.03 kB / 433.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004808/0.2986, allocations: 359.4 kB / 434.1 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007554/0.2993, allocations: 342.9 kB / 434.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002707/0.302, allocations: 1.718 MB / 436.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.3022, allocations: 156.1 kB / 436.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003078/0.3025, allocations: 215.9 kB / 436.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004184/0.3067, allocations: 2.727 MB / 439.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.39e-05/0.3067, allocations: 4 kB / 439.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001875/0.3069, allocations: 87.98 kB / 439.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/0.3071, allocations: 92.05 kB / 439.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003842/0.3109, allocations: 2.303 MB / 441.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.323, allocations: 8.231 MB / 449.9 MB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002885/0.326, allocations: 1.627 MB / 451.5 MB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00195/0.3279, allocations: 1.098 MB / 452.6 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002286/0.3282, allocations: 130.1 kB / 452.8 MB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.3282, allocations: 47.56 kB / 452.8 MB, free: 3.559 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.546e-06/0.3282, allocations: 0 / 452.8 MB, free: 3.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01329/0.3415, allocations: 6.508 MB / 459.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.3416, allocations: 68.72 kB / 459.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002976/0.3446, allocations: 2.156 MB / 461.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001342/0.3447, allocations: 49.61 kB / 461.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008039/0.3455, allocations: 1.145 MB / 462.7 MB, free: 9.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.3459, allocations: 479.8 kB / 463.2 MB, free: 8.949 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003942/0.3463, allocations: 243.5 kB / 463.4 MB, free: 8.707 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3465, allocations: 361.9 kB / 463.8 MB, free: 8.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.3478, allocations: 0.7574 MB / 464.6 MB, free: 7.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.3492, allocations: 1.013 MB / 465.6 MB, free: 6.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002781/0.352, allocations: 1.858 MB / 467.4 MB, free: 4.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.352, allocations: 0 / 467.4 MB, free: 4.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005048/0.3571, allocations: 2.774 MB / 470.2 MB, free: 1.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3571, allocations: 11.98 kB / 470.2 MB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.3571, allocations: 8 kB / 470.2 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001921/0.3591, allocations: 0.7853 MB / 471 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.3602, allocations: 271.5 kB / 471.3 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/0.3718, allocations: 9.607 MB / 480.9 MB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.3732, allocations: 91.89 kB / 481 MB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.3733, allocations: 51.98 kB / 481 MB, free: 6.641 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.001166/0.3745, allocations: 0.7434 MB / 481.8 MB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003522/0.3749, allocations: 210.6 kB / 482 MB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004431/0.3793, allocations: 2.492 MB / 484.5 MB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.419e-05/0.3793, allocations: 12 kB / 484.5 MB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.3794, allocations: 8 kB / 484.5 MB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.3794, allocations: 7.969 kB / 484.5 MB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008577/0.388, allocations: 4.942 MB / 489.4 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.388, allocations: 160 / 489.4 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009962/0.389, allocations: 219.7 kB / 489.6 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001649/0.3907, allocations: 0.6549 MB / 490.3 MB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.422e-05/0.3908, allocations: 35.97 kB / 490.3 MB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008748/0.3995, allocations: 8.723 MB / 499.1 MB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.3996, allocations: 4.062 kB / 499.1 MB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005981/0.4056, allocations: 3.533 MB / 0.4908 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.4066, allocations: 447.6 kB / 0.4912 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.4069, allocations: 36.08 kB / 0.4913 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009895/0.4079, allocations: 91.81 kB / 0.4914 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002489/0.4081, allocations: 100.8 kB / 0.4915 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.4082, allocations: 43.97 kB / 0.4915 GB, free: 15.74 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002027/0.4103, allocations: 1.515 MB / 0.493 GB, free: 14.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4103, allocations: 0 / 0.493 GB, free: 14.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001694/0.412, allocations: 0.5352 MB / 0.4935 GB, free: 13.66 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.006809/0.4188, allocations: 4.467 MB / 0.4979 GB, free: 9.273 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004118/0.4229, allocations: 2.396 MB / 0.5002 GB, free: 6.852 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4229, allocations: 384 / 0.5002 GB, free: 6.852 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002491/0.4254, allocations: 1.597 MB / 0.5018 GB, free: 5.195 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.4276, allocations: 447.4 kB / 0.5022 GB, free: 4.758 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03077/0.4584, allocations: 21.11 MB / 0.5228 GB, free: 15.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/0.46, allocations: 1.959 MB / 0.5247 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00111/0.4611, allocations: 391.7 kB / 0.5251 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/0.4623, allocations: 0.9757 MB / 0.526 GB, free: 11.86 MB / 462.1 MB Notification: Performance of SimCode: time 2.305e-06/0.4623, allocations: 0 / 0.526 GB, free: 11.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2707/0.733, allocations: 51.08 MB / 0.5759 GB, free: 104.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.23/22.96, allocations: 10.05 kB / 0.5759 GB, free: 104.9 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