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.001443/0.001443, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.26, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01633/0.2764, allocations: 16.51 MB / 425.3 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.2865, allocations: 5.626 MB / 430.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003245/0.2898, allocations: 103.6 kB / 431 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00345/0.2933, allocations: 1.133 MB / 432.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004746/0.2981, allocations: 1.331 MB / 433.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00262/0.3007, allocations: 0.9892 MB / 434.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00518/0.3059, allocations: 3.994 MB / 438.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005576/0.3115, allocations: 3.619 MB / 442.1 MB, free: 40 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003324/0.3148, allocations: 1.908 MB / 444 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003964/0.3188, allocations: 2.347 MB / 446.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001558/0.3204, allocations: 0.5156 MB / 446.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002341/0.3228, allocations: 0.7614 MB / 447.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001857/0.3247, allocations: 1.29 MB / 448.9 MB, free: 9.199 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003609/0.3283, allocations: 2.259 MB / 451.2 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008008/0.3363, allocations: 6.928 MB / 458.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3363, allocations: 0 / 458.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3363, allocations: 0 / 458.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001838/0.3365, allocations: 0 / 458.1 MB, free: 15.98 MB / 382.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.0131/0.3496, allocations: 4.702 MB / 462.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.3497, allocations: 8.031 kB / 462.8 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001338/0.3511, allocations: 489.5 kB / 463.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003743/0.3548, allocations: 0.6792 MB / 464 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006253/0.3611, allocations: 2.549 MB / 466.5 MB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002848/0.3614, allocations: 259.3 kB / 466.8 MB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.3625, allocations: 343.9 kB / 467.1 MB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009661/0.3721, allocations: 4.472 MB / 471.6 MB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000128/0.3723, allocations: 3.906 kB / 471.6 MB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007196/0.373, allocations: 136 kB / 471.7 MB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001657/0.3732, allocations: 166.7 kB / 471.9 MB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007459/0.3807, allocations: 3.755 MB / 475.6 MB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02426/0.405, allocations: 14.48 MB / 490.1 MB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005241/0.4103, allocations: 5.61 MB / 495.7 MB, free: 8.949 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003225/0.4135, allocations: 1.693 MB / 497.4 MB, free: 7.258 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007364/0.4209, allocations: 4.206 MB / 0.4899 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.421, allocations: 51.81 kB / 0.4899 GB, free: 2.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.066e-06/0.421, allocations: 0 / 0.4899 GB, free: 2.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01052/0.4315, allocations: 5.663 MB / 0.4954 GB, free: 13.01 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.4316, allocations: 68.66 kB / 0.4955 GB, free: 12.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003676/0.4353, allocations: 2.118 MB / 0.4976 GB, free: 10.78 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.4354, allocations: 45.7 kB / 0.4976 GB, free: 10.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.4365, allocations: 1.661 MB / 0.4992 GB, free: 9.055 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003676/0.4369, allocations: 465.4 kB / 0.4997 GB, free: 8.594 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005058/0.4374, allocations: 335.2 kB / 0.5 GB, free: 8.258 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.034e-05/0.4375, allocations: 301.1 kB / 0.5003 GB, free: 7.961 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.4386, allocations: 0.734 MB / 0.501 GB, free: 7.227 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.4401, allocations: 1.368 MB / 0.5023 GB, free: 5.57 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002842/0.443, allocations: 2.246 MB / 0.5045 GB, free: 3.043 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.869e-05/0.443, allocations: 4 kB / 0.5045 GB, free: 3.039 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004073/0.4471, allocations: 2.607 MB / 0.5071 GB, free: 404 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.4471, allocations: 12 kB / 0.5071 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.09e-05/0.4471, allocations: 20 kB / 0.5071 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005041/0.4477, allocations: 198.8 kB / 0.5073 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.4493, allocations: 451.3 kB / 0.5077 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003169/0.4525, allocations: 3.784 MB / 0.5114 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.454, allocations: 111.9 kB / 0.5115 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.4542, allocations: 84 kB / 0.5116 GB, free: 11.46 MB / 446.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.001686/0.4559, allocations: 1.055 MB / 0.5126 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004834/0.4564, allocations: 221.2 kB / 0.5129 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003732/0.4601, allocations: 2.264 MB / 0.5151 GB, free: 7.852 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.4601, allocations: 16 kB / 0.5151 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.4602, allocations: 7.938 kB / 0.5151 GB, free: 7.828 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.4602, allocations: 3.984 kB / 0.5151 GB, free: 7.824 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008744/0.4689, allocations: 5.304 MB / 0.5203 GB, free: 2.383 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.469, allocations: 4 kB / 0.5203 GB, free: 2.379 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.47, allocations: 223.7 kB / 0.5205 GB, free: 2.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008188/0.4708, allocations: 327.5 kB / 0.5208 GB, free: 1.828 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.914e-05/0.4709, allocations: 27.98 kB / 0.5208 GB, free: 1.801 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007106/0.478, allocations: 8.25 MB / 0.5289 GB, free: 8.988 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.478, allocations: 4 kB / 0.5289 GB, free: 8.984 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004925/0.483, allocations: 3.286 MB / 0.5321 GB, free: 5.602 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.4841, allocations: 450.4 kB / 0.5325 GB, free: 5.141 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004857/0.4846, allocations: 39.98 kB / 0.5326 GB, free: 5.102 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.4858, allocations: 67.92 kB / 0.5326 GB, free: 5.035 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.486, allocations: 93.06 kB / 0.5327 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.4862, allocations: 43.98 kB / 0.5328 GB, free: 4.902 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00243/0.4886, allocations: 1.435 MB / 0.5342 GB, free: 3.449 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4886, allocations: 7.938 kB / 0.5342 GB, free: 3.441 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002096/0.4907, allocations: 0.5702 MB / 0.5347 GB, free: 2.871 MB / 462.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.1914/0.6821, allocations: 3.895 MB / 0.5385 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004002/0.6861, allocations: 2.163 MB / 0.5406 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.6862, allocations: 0.9688 kB / 0.5406 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002071/0.6883, allocations: 1.419 MB / 0.542 GB, free: 122 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002727/0.691, allocations: 0.5674 MB / 0.5426 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02835/0.7194, allocations: 21.45 MB / 0.5635 GB, free: 107.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/0.7209, allocations: 2.421 MB / 0.5659 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001325/0.7223, allocations: 494.6 kB / 0.5664 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/0.7235, allocations: 1.308 MB / 0.5676 GB, free: 103.2 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.7235, allocations: 0 / 0.5676 GB, free: 103.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08228/0.8058, allocations: 52.79 MB / 0.6192 GB, free: 50.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.42, allocations: 8.172 kB / 0.6192 GB, free: 50.93 MB / 462.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