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.001434/0.001434, allocations: 114.4 kB / 17.74 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.001573/0.001574, allocations: 175.1 kB / 18.66 MB, free: 4.438 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.299/1.299, 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.001252/0.001252, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07806/0.07932, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.1665/0.2458, allocations: 10.27 MB / 384.9 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007701/0.2536, allocations: 3.481 MB / 388.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.2555, allocations: 47.78 kB / 388.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.2578, allocations: 0.8225 MB / 389.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002923/0.2607, allocations: 0.8737 MB / 390.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.2619, allocations: 424.3 kB / 390.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003549/0.2654, allocations: 2.761 MB / 393.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002714/0.2682, allocations: 2.368 MB / 395.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002217/0.2704, allocations: 1.256 MB / 396.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002562/0.273, allocations: 1.579 MB / 398.5 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007125/0.2737, allocations: 337 kB / 398.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.2749, allocations: 436.8 kB / 399.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009471/0.2759, allocations: 0.9434 MB / 400.2 MB, free: 188 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002253/0.2782, allocations: 1.505 MB / 401.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006089/0.2843, allocations: 4.402 MB / 406.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.2843, allocations: 0 / 406.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2843, allocations: 0 / 406.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001401/0.2845, allocations: 1.344 kB / 406.1 MB, free: 12.64 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.007769/0.2922, allocations: 3.117 MB / 409.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.2923, allocations: 9.375 kB / 409.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005636/0.2929, allocations: 329.9 kB / 409.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009442/0.2938, allocations: 329.5 kB / 409.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003275/0.2971, allocations: 1.534 MB / 411.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.2973, allocations: 173.5 kB / 411.6 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004585/0.2977, allocations: 224.3 kB / 411.8 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005209/0.3029, allocations: 2.915 MB / 414.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.887e-05/0.303, allocations: 2.75 kB / 414.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002094/0.3032, allocations: 87.25 kB / 414.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001243/0.3034, allocations: 118.4 kB / 414.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004473/0.3079, allocations: 2.433 MB / 417.4 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01542/0.3233, allocations: 9.046 MB / 426.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002337/0.3257, allocations: 1.704 MB / 428.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.3275, allocations: 0.9799 MB / 429.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003314/0.3278, allocations: 207.2 kB / 429.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.3279, allocations: 47.56 kB / 429.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=105): time 3.146e-06/0.3279, allocations: 0 / 429.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01466/0.3425, allocations: 6.567 MB / 435.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.3426, allocations: 64.41 kB / 436 MB, free: 1.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002455/0.3451, allocations: 1.561 MB / 437.5 MB, free: 228 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.3452, allocations: 45.7 kB / 437.6 MB, free: 176 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000825/0.3461, allocations: 1.134 MB / 438.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003923/0.3465, allocations: 456.2 kB / 439.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004322/0.3469, allocations: 275.4 kB / 439.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.347, allocations: 305.1 kB / 439.7 MB, free: 14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.3482, allocations: 0.7077 MB / 440.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/0.3497, allocations: 1.139 MB / 441.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/0.3523, allocations: 1.968 MB / 443.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.3524, allocations: 4 kB / 443.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004228/0.3566, allocations: 2.531 MB / 446.1 MB, free: 7.242 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.3566, allocations: 12 kB / 446.1 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/0.3567, allocations: 12 kB / 446.1 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000946/0.3576, allocations: 415.3 kB / 446.5 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.3589, allocations: 359.4 kB / 446.9 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006963/0.3659, allocations: 7.121 MB / 454 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.3674, allocations: 103.8 kB / 454.1 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/0.3676, allocations: 75.86 kB / 454.2 MB, free: 14.73 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.001274/0.3689, allocations: 0.7203 MB / 454.9 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/0.3692, allocations: 178.9 kB / 455.1 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003625/0.3729, allocations: 2.182 MB / 457.2 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.3729, allocations: 12 kB / 457.3 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.3729, allocations: 4 kB / 457.3 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.3729, allocations: 15.91 kB / 457.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008225/0.3812, allocations: 4.769 MB / 462 MB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.3812, allocations: 7.984 kB / 462.1 MB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000925/0.3822, allocations: 223.7 kB / 462.3 MB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.3833, allocations: 460.3 kB / 462.7 MB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.3834, allocations: 43.97 kB / 462.8 MB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00839/0.3918, allocations: 8.669 MB / 471.4 MB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/0.3918, allocations: 7.938 kB / 471.4 MB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005268/0.3971, allocations: 3.227 MB / 474.7 MB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.3983, allocations: 407.8 kB / 475.1 MB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002968/0.3986, allocations: 28 kB / 475.1 MB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009556/0.3995, allocations: 91.89 kB / 475.2 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002482/0.3998, allocations: 96.75 kB / 475.3 MB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.742e-05/0.3999, allocations: 39.98 kB / 475.3 MB, free: 8.684 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001726/0.4016, allocations: 1.078 MB / 476.4 MB, free: 7.609 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4016, allocations: 0 / 476.4 MB, free: 7.609 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002016/0.4036, allocations: 488.1 kB / 476.9 MB, free: 7.133 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.005413/0.4091, allocations: 3.872 MB / 480.7 MB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003883/0.413, allocations: 2.304 MB / 483 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.413, allocations: 2 kB / 483 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002343/0.4154, allocations: 1.477 MB / 484.5 MB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002572/0.4179, allocations: 487.7 kB / 485 MB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02745/0.4454, allocations: 17.94 MB / 0.4912 GB, free: 12.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001641/0.4471, allocations: 1.864 MB / 0.493 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00128/0.4484, allocations: 390.9 kB / 0.4933 GB, free: 9.789 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/0.4495, allocations: 0.8703 MB / 0.4942 GB, free: 8.918 MB / 430.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4495, allocations: 0 / 0.4942 GB, free: 8.918 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1227/0.5722, allocations: 45.11 MB / 0.5383 GB, free: 11.67 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.36, allocations: 15.97 kB / 0.5383 GB, free: 11.65 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