Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",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.001179/0.001179, allocations: 105.1 kB / 17.06 MB, free: 5.742 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.001068/0.001068, allocations: 196 kB / 18 MB, free: 4.91 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.321/1.321, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.257, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.008732/0.2658, allocations: 8.832 MB / 409.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004794/0.2706, allocations: 2.824 MB / 411.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.2717, allocations: 43.81 kB / 412 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.2732, allocations: 0.6016 MB / 412.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00211/0.2754, allocations: 0.7066 MB / 413.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008116/0.2762, allocations: 327.5 kB / 413.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002595/0.2788, allocations: 2.228 MB / 415.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001856/0.2807, allocations: 1.734 MB / 417.5 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00157/0.2822, allocations: 1.016 MB / 418.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001906/0.2842, allocations: 1.281 MB / 419.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004302/0.2846, allocations: 268 kB / 420.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007898/0.2854, allocations: 355.8 kB / 420.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007004/0.2861, allocations: 0.7597 MB / 421.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.2876, allocations: 1.206 MB / 422.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004041/0.2916, allocations: 3.528 MB / 425.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.2917, allocations: 4 kB / 425.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.2917, allocations: 0 / 425.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.012e-05/0.2918, allocations: 4 kB / 426 MB, free: 14.98 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.004947/0.2967, allocations: 2.477 MB / 428.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.2968, allocations: 8.031 kB / 428.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003324/0.2971, allocations: 270 kB / 428.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006052/0.2977, allocations: 250.2 kB / 428.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.3, allocations: 1.309 MB / 430.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.864e-05/0.3001, allocations: 135.9 kB / 430.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002864/0.3004, allocations: 179.8 kB / 430.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00371/0.3041, allocations: 2.382 MB / 432.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.397e-05/0.3042, allocations: 0 / 432.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001658/0.3043, allocations: 72 kB / 433 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.13e-05/0.3044, allocations: 91.5 kB / 433.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003224/0.3077, allocations: 1.97 MB / 435.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.3178, allocations: 7.062 MB / 442.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001645/0.3195, allocations: 1.278 MB / 443.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001472/0.321, allocations: 0.8581 MB / 444.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002067/0.3212, allocations: 114.1 kB / 444.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.3213, allocations: 47.56 kB / 444.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=87): time 2.855e-06/0.3213, allocations: 0 / 444.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=104): time 0.01316/0.3344, allocations: 6.093 MB / 450.5 MB, free: 5.809 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.3345, allocations: 68.34 kB / 450.6 MB, free: 5.727 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002328/0.3369, allocations: 1.215 MB / 451.8 MB, free: 4.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.337, allocations: 45.7 kB / 451.8 MB, free: 4.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006141/0.3376, allocations: 0.8651 MB / 452.7 MB, free: 3.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003069/0.3379, allocations: 366.7 kB / 453.1 MB, free: 3.207 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003727/0.3383, allocations: 226.8 kB / 453.3 MB, free: 2.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3385, allocations: 349.9 kB / 453.6 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.3395, allocations: 0.6154 MB / 454.2 MB, free: 2.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.3407, allocations: 0.9266 MB / 455.2 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/0.3431, allocations: 1.639 MB / 456.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.3431, allocations: 4 kB / 456.8 MB, free: 15.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003792/0.3469, allocations: 2.219 MB / 459 MB, free: 12.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.347, allocations: 15.94 kB / 459.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.347, allocations: 12.25 kB / 459.1 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.3481, allocations: 475.8 kB / 459.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.3491, allocations: 271.6 kB / 459.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006496/0.3556, allocations: 7.012 MB / 466.8 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.3568, allocations: 83.81 kB / 466.9 MB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001938/0.357, allocations: 48 kB / 466.9 MB, free: 4.605 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (132): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001155/0.3582, allocations: 0.5951 MB / 467.5 MB, free: 4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003508/0.3586, allocations: 134.3 kB / 467.7 MB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003515/0.3621, allocations: 2.031 MB / 469.7 MB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/0.3621, allocations: 8 kB / 469.7 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.3621, allocations: 4 kB / 469.7 MB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3622, allocations: 3.984 kB / 469.7 MB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007357/0.3695, allocations: 4.219 MB / 473.9 MB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.3696, allocations: 0 / 473.9 MB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007382/0.3703, allocations: 180.2 kB / 474.1 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.3716, allocations: 0.5231 MB / 474.6 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.3718, allocations: 27.98 kB / 474.7 MB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007734/0.3795, allocations: 8.64 MB / 483.3 MB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.3796, allocations: 4 kB / 483.3 MB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004647/0.3842, allocations: 2.945 MB / 486.2 MB, free: 444 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008782/0.3851, allocations: 343.4 kB / 486.6 MB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003502/0.3855, allocations: 31.94 kB / 486.6 MB, free: 48 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009599/0.3865, allocations: 67.98 kB / 486.7 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.3867, allocations: 88.75 kB / 486.8 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.347e-05/0.3868, allocations: 39.92 kB / 486.8 MB, free: 15.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001404/0.3882, allocations: 0.8343 MB / 487.6 MB, free: 15.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3883, allocations: 0 / 487.6 MB, free: 15.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001789/0.39, allocations: 412.1 kB / 488 MB, free: 14.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.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 (88): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005088/0.3952, allocations: 3.574 MB / 491.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003723/0.3989, allocations: 2.177 MB / 493.8 MB, free: 8.672 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.3989, allocations: 0 / 493.8 MB, free: 8.672 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00233/0.4013, allocations: 1.471 MB / 495.3 MB, free: 7.129 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002224/0.4035, allocations: 387.4 kB / 495.6 MB, free: 6.754 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02425/0.4278, allocations: 15.07 MB / 0.4987 GB, free: 7.086 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001601/0.4294, allocations: 1.63 MB / 0.5003 GB, free: 5.422 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009064/0.4304, allocations: 299.8 kB / 0.5006 GB, free: 5.125 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009033/0.4313, allocations: 0.6867 MB / 0.5013 GB, free: 4.438 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4313, allocations: 0 / 0.5013 GB, free: 4.438 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2737/0.705, allocations: 37.29 MB / 0.5377 GB, free: 130.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.27, allocations: 1.844 kB / 0.5377 GB, free: 130.3 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.csv --start-time 0 --stop-time 1.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_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches