Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.001387/0.001387, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001428/0.001428, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.028/2.028, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 46.41 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2052, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03335/0.2386, allocations: 15.17 MB / 365.4 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3285/0.5671, allocations: 5.086 MB / 370.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006075/0.5733, allocations: 101.8 kB / 370.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006719/0.5801, allocations: 1.064 MB / 371.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008934/0.5891, allocations: 1.268 MB / 372.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004667/0.5938, allocations: 0.882 MB / 373.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01216/0.606, allocations: 3.593 MB / 377.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007093/0.6131, allocations: 3.316 MB / 380.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004588/0.6178, allocations: 1.717 MB / 382.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007132/0.625, allocations: 2.052 MB / 384.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002795/0.6278, allocations: 480 kB / 384.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0048/0.6326, allocations: 0.694 MB / 385.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002407/0.6351, allocations: 1.138 MB / 386.7 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006675/0.6418, allocations: 2.047 MB / 388.8 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01174/0.6536, allocations: 6.205 MB / 395 MB, free: 1.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.303e-05/0.6536, allocations: 4 kB / 395 MB, free: 1.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.6537, allocations: 1.438 kB / 395 MB, free: 1.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002124/0.6539, allocations: 0 / 395 MB, free: 1.621 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.02195/0.6758, allocations: 4.248 MB / 399.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.099e-05/0.676, allocations: 12.23 kB / 399.2 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002098/0.6781, allocations: 450.4 kB / 399.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007324/0.6854, allocations: 0.6238 MB / 400.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01052/0.696, allocations: 2.208 MB / 402.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005919/0.6966, allocations: 246.2 kB / 402.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002017/0.6987, allocations: 319.8 kB / 403.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02151/0.7202, allocations: 4.041 MB / 407.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000243/0.7205, allocations: 11.94 kB / 407.1 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00146/0.722, allocations: 128 kB / 407.2 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003696/0.7224, allocations: 142.2 kB / 407.4 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01706/0.7395, allocations: 3.39 MB / 410.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04954/0.7891, allocations: 13.3 MB / 424.1 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008031/0.7972, allocations: 3.966 MB / 428 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003415/0.8007, allocations: 1.006 MB / 429 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009048/0.8098, allocations: 2.653 MB / 431.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.947e-05/0.8099, allocations: 43.56 kB / 431.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 7.564e-06/0.8099, allocations: 0 / 431.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.02244/0.8324, allocations: 5.985 MB / 437.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.494e-05/0.8325, allocations: 72.66 kB / 437.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004769/0.8373, allocations: 1.893 MB / 439.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002106/0.8376, allocations: 49.7 kB / 439.7 MB, free: 5.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001604/0.8392, allocations: 1.501 MB / 441.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006414/0.8398, allocations: 490.5 kB / 441.7 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007937/0.8406, allocations: 335.2 kB / 442 MB, free: 3.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.8408, allocations: 301.1 kB / 442.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.8423, allocations: 0.7691 MB / 443.1 MB, free: 2.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001936/0.8442, allocations: 1.377 MB / 444.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003672/0.8479, allocations: 2.32 MB / 446.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-05/0.8479, allocations: 4 kB / 446.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005017/0.853, allocations: 2.478 MB / 449.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.077e-05/0.853, allocations: 12 kB / 449.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.919e-05/0.8531, allocations: 20 kB / 449.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004577/0.8535, allocations: 126.5 kB / 449.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001932/0.8555, allocations: 483.3 kB / 449.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.8569, allocations: 1.398 MB / 451.3 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.8589, allocations: 119.8 kB / 451.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001885/0.8591, allocations: 88.08 kB / 451.5 MB, free: 9.457 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002219/0.8614, allocations: 0.9839 MB / 452.5 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006425/0.862, allocations: 201.5 kB / 452.7 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003853/0.8659, allocations: 1.958 MB / 454.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.8659, allocations: 12 kB / 454.7 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.8659, allocations: 4 kB / 454.7 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/0.8659, allocations: 11.97 kB / 454.7 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01249/0.8784, allocations: 4.997 MB / 459.7 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.8785, allocations: 0 / 459.7 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/0.88, allocations: 311.8 kB / 460 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003896/0.8804, allocations: 94.52 kB / 460.1 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.8806, allocations: 32 kB / 460.1 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001438/0.8821, allocations: 1.375 MB / 461.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.8821, allocations: 3.938 kB / 461.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005451/0.8876, allocations: 3.077 MB / 464.6 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/0.889, allocations: 454.5 kB / 465 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008147/0.8898, allocations: 28.06 kB / 465 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.8914, allocations: 79.91 kB / 465.1 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.8917, allocations: 97 kB / 465.2 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.8918, allocations: 36 kB / 465.2 MB, free: 11.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003168/0.895, allocations: 1.285 MB / 466.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.895, allocations: 0 / 466.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002903/0.8979, allocations: 0.5391 MB / 467.1 MB, free: 9.555 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,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.00644/0.9043, allocations: 3.701 MB / 470.8 MB, free: 5.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01013/0.9145, allocations: 2.833 MB / 473.6 MB, free: 2.906 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/0.9146, allocations: 0 / 473.6 MB, free: 2.906 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003005/0.9176, allocations: 1.179 MB / 474.8 MB, free: 1.676 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006536/0.9241, allocations: 0.5168 MB / 475.3 MB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0674/0.9916, allocations: 22.34 MB / 497.6 MB, free: 8.879 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003365/0.995, allocations: 2.271 MB / 499.9 MB, free: 6.578 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002165/0.9972, allocations: 0.5053 MB / 0.4887 GB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00208/0.9993, allocations: 1.187 MB / 0.4898 GB, free: 4.883 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.9993, allocations: 8 kB / 0.4898 GB, free: 4.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5047/1.504, allocations: 48.49 MB / 0.5372 GB, free: 155 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.01/18.52, allocations: 7.016 kB / 0.5372 GB, free: 155 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches