Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001205/0.001205, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 59.55 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1257, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.2508/0.3764, allocations: 16.51 MB / 374.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.3897, allocations: 5.632 MB / 379.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004516/0.3943, allocations: 104.8 kB / 379.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004051/0.3983, allocations: 1.13 MB / 381 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006479/0.4049, allocations: 1.322 MB / 382.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003545/0.4085, allocations: 0.99 MB / 383.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007208/0.4157, allocations: 3.97 MB / 387.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006281/0.422, allocations: 3.622 MB / 390.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005335/0.4274, allocations: 1.888 MB / 392.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0051/0.4325, allocations: 2.333 MB / 395.1 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001747/0.4343, allocations: 0.517 MB / 395.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002921/0.4372, allocations: 0.7742 MB / 396.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001222/0.4384, allocations: 1.292 MB / 397.7 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003/0.4415, allocations: 2.258 MB / 399.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007346/0.4488, allocations: 6.866 MB / 406.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.4488, allocations: 4 kB / 406.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4489, allocations: 4 kB / 406.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001647/0.449, allocations: 0 / 406.8 MB, free: 10.62 MB / 318.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.01148/0.4605, allocations: 4.691 MB / 411.5 MB, free: 5.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.4606, allocations: 8.031 kB / 411.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006884/0.4613, allocations: 493.5 kB / 412 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.4643, allocations: 0.6811 MB / 412.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004723/0.469, allocations: 2.474 MB / 415.1 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/0.4693, allocations: 266.8 kB / 415.4 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005878/0.4699, allocations: 346.9 kB / 415.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008628/0.4786, allocations: 4.465 MB / 420.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.549e-05/0.4787, allocations: 4 kB / 420.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003246/0.479, allocations: 143.3 kB / 420.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001697/0.4792, allocations: 162.8 kB / 420.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006916/0.4861, allocations: 3.755 MB / 424.3 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02576/0.5119, allocations: 14.66 MB / 438.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005913/0.5178, allocations: 5.617 MB / 444.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00277/0.5206, allocations: 1.569 MB / 446.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007426/0.5281, allocations: 4.213 MB / 450.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.5282, allocations: 51.81 kB / 450.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 3.065e-06/0.5282, allocations: 0 / 450.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01056/0.5387, allocations: 5.661 MB / 456 MB, free: 7.902 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.5388, allocations: 72.66 kB / 456.1 MB, free: 7.816 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003288/0.5421, allocations: 2.115 MB / 458.2 MB, free: 5.668 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001606/0.5423, allocations: 45.7 kB / 458.3 MB, free: 5.617 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/0.5435, allocations: 1.665 MB / 459.9 MB, free: 3.941 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004777/0.544, allocations: 468 kB / 460.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005574/0.5446, allocations: 335.2 kB / 460.7 MB, free: 3.156 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5447, allocations: 301.1 kB / 461 MB, free: 2.859 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.5459, allocations: 0.7301 MB / 461.7 MB, free: 2.129 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.5475, allocations: 1.376 MB / 463.1 MB, free: 480 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003005/0.5505, allocations: 2.246 MB / 465.4 MB, free: 13.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/0.5506, allocations: 4 kB / 465.4 MB, free: 13.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004388/0.5549, allocations: 2.604 MB / 468 MB, free: 11.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.555, allocations: 12.5 kB / 468 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/0.555, allocations: 20 kB / 468 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005001/0.5555, allocations: 198.3 kB / 468.2 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.5571, allocations: 455.3 kB / 468.6 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00341/0.5605, allocations: 3.791 MB / 472.4 MB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.5626, allocations: 111.8 kB / 472.5 MB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/0.5628, allocations: 83.98 kB / 472.6 MB, free: 6.352 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * 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,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002326/0.5651, allocations: 1.052 MB / 473.7 MB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006595/0.5658, allocations: 221.2 kB / 473.9 MB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004051/0.5698, allocations: 2.268 MB / 476.2 MB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.5699, allocations: 12 kB / 476.2 MB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.5699, allocations: 7.984 kB / 476.2 MB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.767e-05/0.5699, allocations: 7.969 kB / 476.2 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008682/0.5786, allocations: 5.303 MB / 481.5 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5786, allocations: 4 kB / 481.5 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000938/0.5796, allocations: 227.6 kB / 481.7 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007541/0.5804, allocations: 323.5 kB / 482 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.112e-05/0.5804, allocations: 28 kB / 482.1 MB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006638/0.5871, allocations: 8.248 MB / 490.3 MB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5871, allocations: 0 / 490.3 MB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004442/0.5916, allocations: 3.277 MB / 493.6 MB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008891/0.5925, allocations: 466.2 kB / 494 MB, free: 76 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.5927, allocations: 24 kB / 494.1 MB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009269/0.5937, allocations: 67.92 kB / 494.1 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.5939, allocations: 101.1 kB / 494.2 MB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.03e-05/0.5939, allocations: 35.98 kB / 494.3 MB, free: 15.85 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001884/0.5958, allocations: 1.443 MB / 495.7 MB, free: 14.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5958, allocations: 0 / 495.7 MB, free: 14.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001773/0.5976, allocations: 0.5742 MB / 496.3 MB, free: 13.81 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.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 (109): * Single equations (assignments): 105 * 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,8,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.004486/0.6021, allocations: 3.906 MB / 0.4885 GB, free: 9.812 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004257/0.6064, allocations: 2.612 MB / 0.491 GB, free: 7.156 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.6064, allocations: 448 / 0.491 GB, free: 7.156 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001986/0.6084, allocations: 1.428 MB / 0.4924 GB, free: 5.676 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/0.6113, allocations: 0.5657 MB / 0.493 GB, free: 5.121 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03384/0.6452, allocations: 24.16 MB / 0.5166 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/0.6474, allocations: 2.425 MB / 0.5189 GB, free: 8.359 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001631/0.6491, allocations: 490.6 kB / 0.5194 GB, free: 7.879 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001706/0.6508, allocations: 1.304 MB / 0.5207 GB, free: 6.574 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.6508, allocations: 0 / 0.5207 GB, free: 6.574 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3692/1.02, allocations: 53.15 MB / 0.5726 GB, free: 118.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/11.62, allocations: 9.406 kB / 0.5726 GB, free: 118.8 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches