Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008775/0.0008776, allocations: 173.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.228/1.228, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007058/0.0007057, allocations: 96.78 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002877, allocations: 8 kB / 327.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1765, allocations: 47.56 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01047/0.187, allocations: 13.95 MB / 389.1 MB, free: 34.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006816/0.1939, allocations: 5.027 MB / 394.2 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.1951, allocations: 91.56 kB / 394.3 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.1967, allocations: 0.8388 MB / 395.1 MB, free: 28.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001989/0.1987, allocations: 1.096 MB / 396.2 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.1999, allocations: 0.6725 MB / 396.9 MB, free: 26.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002606/0.2025, allocations: 3.873 MB / 400.7 MB, free: 23.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002306/0.2048, allocations: 2.971 MB / 403.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.206, allocations: 1.296 MB / 405 MB, free: 18.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.2073, allocations: 1.739 MB / 406.7 MB, free: 17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002852/0.2076, allocations: 207.9 kB / 406.9 MB, free: 16.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007804/0.2084, allocations: 431.7 kB / 407.4 MB, free: 16.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005424/0.2089, allocations: 0.8914 MB / 408.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.21, allocations: 1.759 MB / 410 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003045/0.2131, allocations: 5.583 MB / 415.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2131, allocations: 0 / 415.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2131, allocations: 0 / 415.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.973e-05/0.2132, allocations: 0 / 415.6 MB, free: 8.113 MB / 298.7 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.006824/0.22, allocations: 3.921 MB / 419.5 MB, free: 4.121 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2201, allocations: 12.03 kB / 419.5 MB, free: 4.109 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005121/0.2206, allocations: 485.5 kB / 420 MB, free: 3.625 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002337/0.2229, allocations: 0.6831 MB / 420.7 MB, free: 2.938 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002869/0.2258, allocations: 2.326 MB / 423 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.226, allocations: 275.2 kB / 423.3 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003867/0.2264, allocations: 347.9 kB / 423.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006753/0.2331, allocations: 4.433 MB / 428.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-05/0.2332, allocations: 19.84 kB / 428.1 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000288/0.2335, allocations: 140 kB / 428.2 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001567/0.2337, allocations: 162.8 kB / 428.4 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005842/0.2395, allocations: 3.712 MB / 432.1 MB, free: 7.426 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01896/0.2585, allocations: 14.56 MB / 446.6 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004642/0.2632, allocations: 5.36 MB / 452 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/0.265, allocations: 1.286 MB / 453.3 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005658/0.2707, allocations: 3.819 MB / 457.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.2707, allocations: 43.88 kB / 457.1 MB, free: 13.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 2.885e-06/0.2707, allocations: 3.938 kB / 457.1 MB, free: 13.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.008461/0.2792, allocations: 5.467 MB / 462.6 MB, free: 7.488 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.2792, allocations: 68.66 kB / 462.7 MB, free: 7.406 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002591/0.2818, allocations: 2.09 MB / 464.8 MB, free: 5.281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.723e-05/0.2819, allocations: 45.7 kB / 464.8 MB, free: 5.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001/0.2829, allocations: 1.653 MB / 466.5 MB, free: 3.559 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/0.2833, allocations: 465.4 kB / 466.9 MB, free: 3.098 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.503e-05/0.2833, allocations: 36 kB / 467 MB, free: 3.062 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.2835, allocations: 377.9 kB / 467.3 MB, free: 2.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.2846, allocations: 0.7066 MB / 468 MB, free: 1.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.286, allocations: 1.353 MB / 469.4 MB, free: 348 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002606/0.2886, allocations: 2.219 MB / 471.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.2886, allocations: 4 kB / 471.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003516/0.2922, allocations: 2.506 MB / 474.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.2922, allocations: 16.06 kB / 474.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.2922, allocations: 24 kB / 474.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003411/0.2926, allocations: 142.4 kB / 474.3 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/0.2941, allocations: 459.3 kB / 474.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002214/0.2964, allocations: 3.09 MB / 477.8 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.2976, allocations: 107.8 kB / 477.9 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.2977, allocations: 84 kB / 478 MB, free: 7.102 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001536/0.2993, allocations: 1.055 MB / 479.1 MB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002549/0.2995, allocations: 217.3 kB / 479.3 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00325/0.3028, allocations: 2.177 MB / 481.5 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3028, allocations: 16 kB / 481.5 MB, free: 3.574 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3028, allocations: 4 kB / 481.5 MB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.3029, allocations: 3.984 kB / 481.5 MB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006973/0.3098, allocations: 5.157 MB / 486.6 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.3099, allocations: 8.062 kB / 486.7 MB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009379/0.3108, allocations: 227.7 kB / 486.9 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006473/0.3115, allocations: 279 kB / 487.2 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.858e-05/0.3115, allocations: 35.98 kB / 487.2 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005782/0.3173, allocations: 7.112 MB / 494.3 MB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3174, allocations: 4.094 kB / 494.3 MB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004279/0.3216, allocations: 3.172 MB / 497.5 MB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007363/0.3224, allocations: 458.4 kB / 497.9 MB, free: 2.328 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.3226, allocations: 31.98 kB / 498 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008925/0.3235, allocations: 71.92 kB / 498 MB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.3237, allocations: 96.75 kB / 498.1 MB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.908e-05/0.3238, allocations: 43.92 kB / 498.2 MB, free: 2.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001915/0.3258, allocations: 1.415 MB / 499.6 MB, free: 0.6562 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3258, allocations: 0 / 499.6 MB, free: 0.6562 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00165/0.3274, allocations: 0.5626 MB / 0.4884 GB, free: 96 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004555/0.332, allocations: 3.794 MB / 0.4921 GB, free: 12.19 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002891/0.3349, allocations: 2.078 MB / 0.4941 GB, free: 10.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3349, allocations: 0 / 0.4941 GB, free: 10.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001772/0.3367, allocations: 1.368 MB / 0.4955 GB, free: 8.652 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/0.3395, allocations: 0.5198 MB / 0.496 GB, free: 8.137 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1608/0.5003, allocations: 18.21 MB / 0.5138 GB, free: 117 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0018/0.5021, allocations: 2.366 MB / 0.5161 GB, free: 116 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/0.5035, allocations: 1.317 MB / 0.5174 GB, free: 114.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.001e-06/0.5035, allocations: 0 / 0.5174 GB, free: 114.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.91/6.413, allocations: 110 MB / 0.6248 GB, free: 7.508 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches