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.0009743/0.000978, allocations: 93.78 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009583/0.0009583, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 227.7 MB / 246.8 MB, free: 9.551 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002037/0.0002037, allocations: 8 kB / 307.8 MB, free: 476 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08179/0.08201, allocations: 51.53 MB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.1594/0.2415, allocations: 15.54 MB / 374.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007672/0.2492, allocations: 5.466 MB / 380.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.2505, allocations: 100.8 kB / 380.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.2525, allocations: 0.9849 MB / 381.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.2552, allocations: 1.181 MB / 382.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.2568, allocations: 0.9021 MB / 383.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003762/0.2606, allocations: 4.138 MB / 387.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003031/0.2636, allocations: 3.014 MB / 390.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.2654, allocations: 1.331 MB / 392 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.2672, allocations: 1.814 MB / 393.8 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003415/0.2675, allocations: 204.2 kB / 394 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001147/0.2687, allocations: 461.6 kB / 394.5 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000692/0.2694, allocations: 0.9065 MB / 395.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.2708, allocations: 1.849 MB / 397.2 MB, free: 1.691 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004831/0.2757, allocations: 6.469 MB / 403.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2757, allocations: 0 / 403.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2757, allocations: 4 kB / 403.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.111e-05/0.2758, allocations: 0 / 403.7 MB, free: 13.02 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.008056/0.2839, allocations: 3.957 MB / 407.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.2839, allocations: 12.03 kB / 407.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007045/0.2846, allocations: 493.5 kB / 408.2 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002735/0.2874, allocations: 0.6857 MB / 408.9 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003481/0.2909, allocations: 2.45 MB / 411.3 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/0.2911, allocations: 267.5 kB / 411.6 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004601/0.2915, allocations: 354.3 kB / 411.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006318/0.2979, allocations: 4.466 MB / 416.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.549e-05/0.2979, allocations: 11.91 kB / 416.4 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002885/0.2982, allocations: 140 kB / 416.5 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/0.2984, allocations: 162.8 kB / 416.7 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005434/0.3038, allocations: 3.76 MB / 420.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01961/0.3234, allocations: 14.71 MB / 435.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0054/0.3289, allocations: 5.629 MB / 440.8 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00272/0.3316, allocations: 1.593 MB / 442.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006619/0.3383, allocations: 4.233 MB / 446.6 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.3383, allocations: 47.81 kB / 446.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 2.525e-06/0.3383, allocations: 3.938 kB / 446.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.009452/0.3478, allocations: 5.689 MB / 452.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.3479, allocations: 68.66 kB / 452.4 MB, free: 12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002834/0.3507, allocations: 2.111 MB / 454.5 MB, free: 9.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.3508, allocations: 45.7 kB / 454.6 MB, free: 9.809 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009951/0.3518, allocations: 1.665 MB / 456.2 MB, free: 8.133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003181/0.3522, allocations: 465.7 kB / 456.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/0.3523, allocations: 149.6 kB / 456.8 MB, free: 7.527 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.942e-05/0.3524, allocations: 301.1 kB / 457.1 MB, free: 7.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.3535, allocations: 0.734 MB / 457.9 MB, free: 6.496 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.355, allocations: 1.364 MB / 459.2 MB, free: 4.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002701/0.3577, allocations: 2.253 MB / 461.5 MB, free: 2.312 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.3578, allocations: 11.94 kB / 461.5 MB, free: 2.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004001/0.3618, allocations: 2.604 MB / 464.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.3618, allocations: 12 kB / 464.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/0.3618, allocations: 20 kB / 464.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004654/0.3623, allocations: 194.5 kB / 464.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/0.3638, allocations: 455.3 kB / 464.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/0.3668, allocations: 3.518 MB / 468.3 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/0.3683, allocations: 107.8 kB / 468.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.3685, allocations: 91.94 kB / 468.5 MB, free: 11 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.001702/0.3702, allocations: 1.059 MB / 469.5 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003042/0.3705, allocations: 213.3 kB / 469.8 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003373/0.3739, allocations: 2.279 MB / 472 MB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.3739, allocations: 12 kB / 472 MB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3739, allocations: 4.188 kB / 472 MB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.3739, allocations: 7.969 kB / 472.1 MB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007116/0.3811, allocations: 5.311 MB / 477.4 MB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3811, allocations: 4 kB / 477.4 MB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009239/0.382, allocations: 223.7 kB / 477.6 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007538/0.3828, allocations: 323.4 kB / 477.9 MB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.657e-05/0.3829, allocations: 32 kB / 477.9 MB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006354/0.3892, allocations: 7.556 MB / 485.5 MB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3893, allocations: 7.969 kB / 485.5 MB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004664/0.3939, allocations: 3.286 MB / 488.8 MB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009071/0.3949, allocations: 470.2 kB / 489.2 MB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/0.3951, allocations: 27.94 kB / 489.3 MB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000914/0.396, allocations: 71.92 kB / 489.3 MB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.3962, allocations: 93.19 kB / 489.4 MB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.327e-05/0.3963, allocations: 43.92 kB / 489.5 MB, free: 5.176 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001953/0.3983, allocations: 1.439 MB / 490.9 MB, free: 3.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3983, allocations: 0 / 490.9 MB, free: 3.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001837/0.4001, allocations: 0.5664 MB / 491.5 MB, free: 3.152 MB / 398.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.004715/0.4048, allocations: 3.934 MB / 495.4 MB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00294/0.4078, allocations: 2.151 MB / 497.6 MB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.4078, allocations: 0 / 497.6 MB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001958/0.4098, allocations: 1.422 MB / 499 MB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003122/0.4129, allocations: 0.5247 MB / 499.5 MB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03955/0.4525, allocations: 25.69 MB / 0.5129 GB, free: 15.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001978/0.4545, allocations: 2.418 MB / 0.5153 GB, free: 12.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001498/0.456, allocations: 498.6 kB / 0.5157 GB, free: 12.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001417/0.4574, allocations: 1.3 MB / 0.517 GB, free: 10.85 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4574, allocations: 4 kB / 0.517 GB, free: 10.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.229/0.6864, allocations: 51.26 MB / 0.5671 GB, free: 122.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/0.6866, allocations: 290 kB / 0.5673 GB, free: 121.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.591/3.278, allocations: 7.172 kB / 0.5673 GB, free: 121.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