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.001433/0.001433, allocations: 106.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.3 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 63.91 kB / 306.4 MB, free: 0.9062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1031, allocations: 50.52 MB / 356.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.2597/0.3628, allocations: 16.3 MB / 373.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01242/0.3753, allocations: 5.559 MB / 378.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004253/0.3796, allocations: 99.84 kB / 378.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003805/0.3834, allocations: 0.9862 MB / 379.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005096/0.3886, allocations: 1.188 MB / 381 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002467/0.391, allocations: 0.9171 MB / 381.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005529/0.3966, allocations: 4.138 MB / 386.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00387/0.4005, allocations: 3.053 MB / 389.1 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002498/0.403, allocations: 1.583 MB / 390.7 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002964/0.406, allocations: 2.132 MB / 392.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008539/0.4069, allocations: 315.3 kB / 393.2 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.4087, allocations: 0.5619 MB / 393.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009281/0.4096, allocations: 1.07 MB / 394.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003193/0.4128, allocations: 2.032 MB / 396.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006951/0.4198, allocations: 6.7 MB / 403.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4199, allocations: 4 kB / 403.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.4199, allocations: 0 / 403.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001231/0.42, allocations: 0 / 403.5 MB, free: 12.27 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.01261/0.4326, allocations: 4.689 MB / 408.2 MB, free: 8.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/0.4327, allocations: 12.03 kB / 408.2 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009443/0.4336, allocations: 495.8 kB / 408.7 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003295/0.437, allocations: 0.6779 MB / 409.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004825/0.4418, allocations: 2.452 MB / 411.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002869/0.4421, allocations: 267.4 kB / 412.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001071/0.4432, allocations: 350.5 kB / 412.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00855/0.4518, allocations: 4.468 MB / 416.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.728e-05/0.4519, allocations: 7.906 kB / 416.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004047/0.4523, allocations: 138.7 kB / 417.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/0.4524, allocations: 162.8 kB / 417.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006665/0.4591, allocations: 3.747 MB / 421 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0254/0.4845, allocations: 14.66 MB / 435.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005942/0.4905, allocations: 5.622 MB / 441.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002804/0.4934, allocations: 1.575 MB / 442.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008258/0.5016, allocations: 4.203 MB / 447 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.02e-05/0.5017, allocations: 51.81 kB / 447.1 MB, free: 220 kB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 6.191e-06/0.5017, allocations: 0 / 447.1 MB, free: 220 kB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01042/0.5122, allocations: 5.658 MB / 452.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.5122, allocations: 68.66 kB / 452.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003629/0.5159, allocations: 2.122 MB / 454.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.516, allocations: 45.7 kB / 455 MB, free: 8.102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/0.5171, allocations: 1.666 MB / 456.6 MB, free: 6.422 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.5175, allocations: 465.7 kB / 457.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005284/0.518, allocations: 335.1 kB / 457.4 MB, free: 5.641 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.256e-05/0.5181, allocations: 305.1 kB / 457.7 MB, free: 5.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.5192, allocations: 0.734 MB / 458.4 MB, free: 4.605 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.5207, allocations: 1.368 MB / 459.8 MB, free: 2.953 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002781/0.5235, allocations: 2.25 MB / 462.1 MB, free: 432 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.427e-05/0.5236, allocations: 4 kB / 462.1 MB, free: 428 kB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004205/0.5278, allocations: 2.596 MB / 464.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.5278, allocations: 16.5 kB / 464.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.358e-05/0.5279, allocations: 20 kB / 464.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005167/0.5284, allocations: 190.4 kB / 464.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.53, allocations: 455.3 kB / 465.3 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003046/0.533, allocations: 3.506 MB / 468.8 MB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.5347, allocations: 127.8 kB / 469 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.5348, allocations: 83.92 kB / 469 MB, free: 9.125 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.001917/0.5368, allocations: 1.048 MB / 470.1 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000558/0.5373, allocations: 217.4 kB / 470.3 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003857/0.5412, allocations: 2.275 MB / 472.6 MB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.5412, allocations: 12 kB / 472.6 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.5412, allocations: 11.98 kB / 472.6 MB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.5413, allocations: 3.984 kB / 472.6 MB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/0.5533, allocations: 5.314 MB / 477.9 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.5533, allocations: 0 / 477.9 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.5544, allocations: 223.7 kB / 478.1 MB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001005/0.5555, allocations: 319.2 kB / 478.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001493/0.5556, allocations: 35.98 kB / 478.5 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007871/0.5635, allocations: 7.543 MB / 486 MB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/0.5636, allocations: 12.03 kB / 486 MB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005966/0.5695, allocations: 3.285 MB / 489.3 MB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/0.5711, allocations: 458.2 kB / 489.8 MB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007766/0.5719, allocations: 31.98 kB / 489.8 MB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/0.5734, allocations: 71.92 kB / 489.9 MB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002721/0.5737, allocations: 85.56 kB / 490 MB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.5738, allocations: 43.92 kB / 490 MB, free: 3.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003421/0.5773, allocations: 1.439 MB / 491.4 MB, free: 1.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5773, allocations: 0 / 491.4 MB, free: 1.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003453/0.5808, allocations: 0.578 MB / 492 MB, free: 1.297 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.006399/0.5872, allocations: 3.907 MB / 495.9 MB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003611/0.5908, allocations: 2.15 MB / 498.1 MB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.5908, allocations: 0 / 498.1 MB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002188/0.593, allocations: 1.414 MB / 499.5 MB, free: 9.625 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003273/0.5963, allocations: 0.5279 MB / 0.4883 GB, free: 9.102 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04738/0.6437, allocations: 25.57 MB / 0.5133 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001957/0.6457, allocations: 2.425 MB / 0.5156 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001745/0.6475, allocations: 490.6 kB / 0.5161 GB, free: 10.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/0.649, allocations: 1.304 MB / 0.5174 GB, free: 9.148 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.649, allocations: 0 / 0.5174 GB, free: 9.148 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.589/3.238, allocations: 51.9 MB / 0.5681 GB, free: 123.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/3.239, allocations: 293.6 kB / 0.5683 GB, free: 123.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.881/7.119, allocations: 2.344 kB / 0.5683 GB, free: 123.2 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