Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_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.001224/0.001224, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001153/0.001153, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08832, allocations: 46.63 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.1641/0.2524, allocations: 10.26 MB / 384.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005196/0.2577, allocations: 3.488 MB / 388.4 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008542/0.2586, allocations: 46.88 kB / 388.5 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001602/0.2602, allocations: 0.7703 MB / 389.2 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001964/0.2622, allocations: 0.8273 MB / 390.1 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008541/0.263, allocations: 422 kB / 390.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002702/0.2658, allocations: 2.761 MB / 393.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002301/0.2681, allocations: 2.364 MB / 395.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001698/0.2698, allocations: 1.25 MB / 396.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.2716, allocations: 1.583 MB / 398.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004253/0.272, allocations: 335.5 kB / 398.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007837/0.2728, allocations: 438.5 kB / 399.2 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008432/0.2737, allocations: 0.9393 MB / 400.1 MB, free: 276 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001601/0.2753, allocations: 1.504 MB / 401.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005062/0.2804, allocations: 4.399 MB / 406 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2804, allocations: 1.031 kB / 406 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2804, allocations: 0 / 406 MB, free: 12.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.75e-05/0.2805, allocations: 1.188 kB / 406 MB, free: 12.72 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.00637/0.2869, allocations: 3.121 MB / 409.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.2869, allocations: 9.531 kB / 409.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004364/0.2874, allocations: 331 kB / 409.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008201/0.2882, allocations: 324 kB / 409.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002566/0.2908, allocations: 1.539 MB / 411.3 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.2909, allocations: 165.8 kB / 411.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003206/0.2912, allocations: 220.2 kB / 411.7 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004686/0.2959, allocations: 2.918 MB / 414.6 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.684e-05/0.296, allocations: 8.672 kB / 414.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000217/0.2962, allocations: 85.88 kB / 414.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.2963, allocations: 119.2 kB / 414.8 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004379/0.3007, allocations: 2.431 MB / 417.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01437/0.3151, allocations: 9.05 MB / 426.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002523/0.3177, allocations: 1.704 MB / 428 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001859/0.3195, allocations: 0.9838 MB / 429 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003134/0.3199, allocations: 203.2 kB / 429.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.3199, allocations: 43.56 kB / 429.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=105): time 2.716e-06/0.3199, allocations: 0 / 429.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01479/0.3347, allocations: 6.571 MB / 435.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.3348, allocations: 64.41 kB / 435.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002427/0.3372, allocations: 1.565 MB / 437.4 MB, free: 340 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.594e-05/0.3373, allocations: 45.7 kB / 437.5 MB, free: 288 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009583/0.3383, allocations: 1.142 MB / 438.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003916/0.3387, allocations: 452.2 kB / 439.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004655/0.3392, allocations: 275.5 kB / 439.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3393, allocations: 301.1 kB / 439.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.3406, allocations: 0.7105 MB / 440.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001601/0.3422, allocations: 1.139 MB / 441.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003001/0.3452, allocations: 1.96 MB / 443.4 MB, free: 9.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.689e-06/0.3453, allocations: 7.984 kB / 443.5 MB, free: 9.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004424/0.3497, allocations: 2.519 MB / 446 MB, free: 7.363 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.3497, allocations: 12 kB / 446 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.3498, allocations: 15.98 kB / 446 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.3508, allocations: 424 kB / 446.4 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.3521, allocations: 351.4 kB / 446.8 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007873/0.36, allocations: 7.137 MB / 453.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.3615, allocations: 103.8 kB / 454 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.3616, allocations: 63.94 kB / 454.1 MB, free: 14.85 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * 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 {(3,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.001456/0.3631, allocations: 0.7242 MB / 454.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003165/0.3634, allocations: 178.9 kB / 455 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00405/0.3674, allocations: 2.182 MB / 457.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.3675, allocations: 12 kB / 457.2 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.3675, allocations: 4 kB / 457.2 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.3675, allocations: 11.91 kB / 457.2 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008162/0.3757, allocations: 4.781 MB / 461.9 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.3757, allocations: 7.938 kB / 462 MB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009791/0.3767, allocations: 219.7 kB / 462.2 MB, free: 6.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/0.3779, allocations: 463.7 kB / 462.6 MB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.816e-05/0.378, allocations: 35.98 kB / 462.7 MB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009212/0.3872, allocations: 8.665 MB / 471.3 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/0.3873, allocations: 7.938 kB / 471.3 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005488/0.3927, allocations: 3.235 MB / 474.6 MB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008814/0.3936, allocations: 403.8 kB / 475 MB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.3939, allocations: 31.98 kB / 475 MB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009318/0.3948, allocations: 84 kB / 475.1 MB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.3951, allocations: 108.7 kB / 475.2 MB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.53e-05/0.3952, allocations: 36 kB / 475.2 MB, free: 8.789 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001703/0.3969, allocations: 1.078 MB / 476.3 MB, free: 7.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3969, allocations: 0 / 476.3 MB, free: 7.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001692/0.3986, allocations: 484.1 kB / 476.8 MB, free: 7.242 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,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.005854/0.4045, allocations: 3.875 MB / 480.6 MB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003987/0.4085, allocations: 2.294 MB / 482.9 MB, free: 0.9023 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.4085, allocations: 4 kB / 482.9 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.411, allocations: 1.477 MB / 484.4 MB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/0.4133, allocations: 484 kB / 484.9 MB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02851/0.4418, allocations: 17.96 MB / 0.4911 GB, free: 12.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00189/0.4437, allocations: 1.867 MB / 0.4929 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001181/0.4449, allocations: 386.9 kB / 0.4933 GB, free: 9.891 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001232/0.4462, allocations: 0.8742 MB / 0.4941 GB, free: 9.016 MB / 430.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4462, allocations: 0 / 0.4941 GB, free: 9.016 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09718/0.5434, allocations: 45.11 MB / 0.5382 GB, free: 11.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.54, allocations: 12.11 kB / 0.5382 GB, free: 11.75 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches