Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",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.00151/0.00151, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001722/0.001722, allocations: 179.1 kB / 18.66 MB, free: 4.414 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.474/1.474, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001519/0.001519, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09479/0.09632, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2398/0.3361, allocations: 15.83 MB / 390.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01527/0.3515, allocations: 5.391 MB / 395.9 MB, free: 328 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004579/0.3561, allocations: 94.78 kB / 396 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004957/0.3611, allocations: 1.173 MB / 397.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006893/0.3681, allocations: 1.384 MB / 398.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004391/0.3725, allocations: 0.9746 MB / 399.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008829/0.3814, allocations: 3.981 MB / 403.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008093/0.3895, allocations: 3.557 MB / 407.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006113/0.3957, allocations: 1.893 MB / 408.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006323/0.4021, allocations: 2.27 MB / 411.2 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002485/0.4046, allocations: 0.515 MB / 411.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003806/0.4084, allocations: 0.7361 MB / 412.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003006/0.4115, allocations: 1.289 MB / 413.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005817/0.4174, allocations: 2.245 MB / 416 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01331/0.4307, allocations: 6.907 MB / 422.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4308, allocations: 4 kB / 422.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.4308, allocations: 0 / 422.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002495/0.4311, allocations: 4 kB / 422.9 MB, free: 15.7 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01971/0.4508, allocations: 4.758 MB / 427.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.4509, allocations: 12.03 kB / 427.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001872/0.4528, allocations: 497.4 kB / 428.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005861/0.4586, allocations: 0.6854 MB / 428.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008319/0.467, allocations: 2.394 MB / 431.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000516/0.4676, allocations: 267.4 kB / 431.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001496/0.4691, allocations: 351.9 kB / 431.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01657/0.4857, allocations: 4.464 MB / 436.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001877/0.4859, allocations: 0 / 436.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009606/0.4869, allocations: 140 kB / 436.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002405/0.4872, allocations: 158.8 kB / 436.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01208/0.4993, allocations: 3.735 MB / 440.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03974/0.5391, allocations: 14.37 MB / 454.7 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007946/0.5471, allocations: 5.362 MB / 460.1 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00308/0.5502, allocations: 1.259 MB / 461.3 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01181/0.562, allocations: 3.792 MB / 465.1 MB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/0.5621, allocations: 51.81 kB / 465.2 MB, free: 4.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.047e-06/0.5621, allocations: 0 / 465.2 MB, free: 4.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01261/0.5748, allocations: 5.52 MB / 470.7 MB, free: 14.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.5749, allocations: 64.72 kB / 470.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004843/0.5798, allocations: 2.106 MB / 472.9 MB, free: 12.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002785/0.5801, allocations: 49.7 kB / 472.9 MB, free: 12.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/0.5818, allocations: 1.701 MB / 474.6 MB, free: 10.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006714/0.5825, allocations: 480 kB / 475.1 MB, free: 9.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009158/0.5834, allocations: 339.4 kB / 475.4 MB, free: 9.523 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.5835, allocations: 305.1 kB / 475.7 MB, free: 9.223 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.585, allocations: 0.7106 MB / 476.4 MB, free: 8.512 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/0.587, allocations: 1.357 MB / 477.8 MB, free: 6.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003691/0.5907, allocations: 2.227 MB / 480 MB, free: 4.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.218e-05/0.5908, allocations: 11.94 kB / 480 MB, free: 4.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005368/0.5961, allocations: 2.53 MB / 482.5 MB, free: 1.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.784e-05/0.5962, allocations: 12 kB / 482.6 MB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.24e-05/0.5963, allocations: 20 kB / 482.6 MB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004787/0.5968, allocations: 139 kB / 482.7 MB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002083/0.5989, allocations: 475.2 kB / 483.2 MB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0032/0.6021, allocations: 3.353 MB / 486.5 MB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00219/0.6043, allocations: 119.8 kB / 486.6 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000365/0.6047, allocations: 83.98 kB / 486.7 MB, free: 13.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002726/0.6075, allocations: 1.048 MB / 487.8 MB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008359/0.6083, allocations: 226.5 kB / 488 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004383/0.6127, allocations: 2.177 MB / 490.2 MB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.778e-05/0.6128, allocations: 12 kB / 490.2 MB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-05/0.6128, allocations: 7.938 kB / 490.2 MB, free: 9.766 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.931e-05/0.6128, allocations: 3.984 kB / 490.2 MB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.6253, allocations: 5.16 MB / 495.4 MB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.6254, allocations: 4 kB / 495.4 MB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.6266, allocations: 227.7 kB / 495.6 MB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008045/0.6274, allocations: 271.5 kB / 495.9 MB, free: 3.957 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.6276, allocations: 31.92 kB / 495.9 MB, free: 3.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00807/0.6356, allocations: 7.806 MB / 0.4919 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.6357, allocations: 4 kB / 0.4919 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005889/0.6416, allocations: 3.198 MB / 0.495 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.643, allocations: 463.6 kB / 0.4955 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006042/0.6436, allocations: 28 kB / 0.4955 GB, free: 7.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/0.645, allocations: 71.92 kB / 0.4955 GB, free: 7.699 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/0.6453, allocations: 96.75 kB / 0.4956 GB, free: 7.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.6454, allocations: 39.98 kB / 0.4957 GB, free: 7.562 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002985/0.6484, allocations: 1.427 MB / 0.4971 GB, free: 6.117 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6484, allocations: 3.938 kB / 0.4971 GB, free: 6.113 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00286/0.6513, allocations: 0.5624 MB / 0.4976 GB, free: 5.551 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.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 (112): * Single equations (assignments): 108 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005846/0.6572, allocations: 3.801 MB / 0.5013 GB, free: 1.637 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003878/0.6611, allocations: 2.102 MB / 0.5034 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.6611, allocations: 448 / 0.5034 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002316/0.6634, allocations: 1.383 MB / 0.5047 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003903/0.6674, allocations: 0.5517 MB / 0.5053 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04487/0.7123, allocations: 21.34 MB / 0.5261 GB, free: 7.312 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004065/0.7164, allocations: 2.417 MB / 0.5285 GB, free: 4.863 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002096/0.7185, allocations: 0.4946 MB / 0.529 GB, free: 4.367 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002769/0.7213, allocations: 1.304 MB / 0.5302 GB, free: 3.062 MB / 462.1 MB Notification: Performance of SimCode: time 1.272e-06/0.7214, allocations: 0 / 0.5302 GB, free: 3.062 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3215/1.043, allocations: 51.83 MB / 0.5809 GB, free: 141.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/15, allocations: 5.422 kB / 0.5809 GB, free: 141.8 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches