Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009458/0.0009459, allocations: 196.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.6 MB / 244.3 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007773/0.0007774, allocations: 103.4 kB / 296.4 MB, free: 6.777 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002699/0.0002699, allocations: 8 kB / 356.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2616, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01095/0.2726, allocations: 13.85 MB / 421.4 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00834/0.2809, allocations: 4.92 MB / 426.3 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002262/0.2832, allocations: 99.56 kB / 426.4 MB, free: 8.895 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.2855, allocations: 0.8272 MB / 427.2 MB, free: 8.062 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.2889, allocations: 0.9985 MB / 428.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001847/0.2908, allocations: 0.6464 MB / 428.8 MB, free: 6.414 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003493/0.2943, allocations: 3.558 MB / 432.4 MB, free: 2.848 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002039/0.2963, allocations: 2.324 MB / 434.7 MB, free: 488 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001355/0.2977, allocations: 1.202 MB / 435.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001656/0.2994, allocations: 1.576 MB / 437.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002998/0.2997, allocations: 188 kB / 437.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009043/0.3006, allocations: 411.7 kB / 438.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006738/0.3013, allocations: 0.798 MB / 438.9 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006025/0.3019, allocations: 0.6989 MB / 439.6 MB, free: 11.59 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004125/0.306, allocations: 5.099 MB / 444.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.306, allocations: 0 / 444.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.306, allocations: 0 / 444.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.441e-05/0.3061, allocations: 0 / 444.7 MB, free: 6.48 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.007336/0.3134, allocations: 3.642 MB / 448.3 MB, free: 2.766 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.3135, allocations: 12.03 kB / 448.3 MB, free: 2.754 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002547/0.3161, allocations: 0.6241 MB / 449 MB, free: 2.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003374/0.3194, allocations: 2.152 MB / 451.1 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001953/0.3196, allocations: 242.3 kB / 451.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00042/0.3201, allocations: 307.9 kB / 451.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006434/0.3265, allocations: 4.027 MB / 455.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.05e-05/0.3266, allocations: 3.906 kB / 455.7 MB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002666/0.3269, allocations: 131.9 kB / 455.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001349/0.327, allocations: 150.2 kB / 456 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00529/0.3323, allocations: 3.37 MB / 459.3 MB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01754/0.3499, allocations: 13.55 MB / 472.9 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00408/0.354, allocations: 4.267 MB / 477.2 MB, free: 4.773 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.3555, allocations: 1.035 MB / 478.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00384/0.3594, allocations: 2.863 MB / 481 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.3594, allocations: 47.56 kB / 481.1 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of pre-optimization done (n=108): time 2.164e-06/0.3594, allocations: 0 / 481.1 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of matching and sorting (n=142): time 0.01043/0.3699, allocations: 5.991 MB / 487.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.3699, allocations: 64.72 kB / 487.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002288/0.3722, allocations: 1.89 MB / 489 MB, free: 8.602 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.243e-05/0.3723, allocations: 49.7 kB / 489.1 MB, free: 8.547 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009298/0.3732, allocations: 1.512 MB / 490.6 MB, free: 7.016 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003193/0.3736, allocations: 489 kB / 491.1 MB, free: 6.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.657e-05/0.3737, allocations: 40 kB / 491.1 MB, free: 6.492 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3738, allocations: 381.8 kB / 491.5 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.3749, allocations: 0.7652 MB / 492.3 MB, free: 5.348 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.3765, allocations: 1.371 MB / 493.6 MB, free: 3.707 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.3779, allocations: 1.002 MB / 494.6 MB, free: 2.703 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.378, allocations: 4 kB / 494.6 MB, free: 2.699 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003504/0.3815, allocations: 2.469 MB / 497.1 MB, free: 216 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.3815, allocations: 12.62 kB / 497.1 MB, free: 204 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-05/0.3815, allocations: 23.95 kB / 497.1 MB, free: 180 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000382/0.3819, allocations: 122.5 kB / 497.3 MB, free: 48 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/0.3836, allocations: 483.2 kB / 497.7 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.3848, allocations: 1.319 MB / 499 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.386, allocations: 112 kB / 499.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.3862, allocations: 83.98 kB / 499.2 MB, free: 13.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00171/0.3879, allocations: 0.9812 MB / 0.4885 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002647/0.3881, allocations: 205.5 kB / 0.4887 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00314/0.3913, allocations: 1.973 MB / 0.4906 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.3913, allocations: 12 kB / 0.4906 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3913, allocations: 0 / 0.4906 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.3913, allocations: 3.984 kB / 0.4906 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007612/0.399, allocations: 5.005 MB / 0.4955 GB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.399, allocations: 4 kB / 0.4955 GB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.4003, allocations: 303.6 kB / 0.4958 GB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00029/0.4006, allocations: 98.72 kB / 0.4959 GB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.643e-05/0.4007, allocations: 35.98 kB / 0.4959 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009076/0.4016, allocations: 1.272 MB / 0.4972 GB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/0.4016, allocations: 4 kB / 0.4972 GB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004283/0.4059, allocations: 3.081 MB / 0.5002 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007183/0.4066, allocations: 462.4 kB / 0.5006 GB, free: 160 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000206/0.4068, allocations: 31.98 kB / 0.5007 GB, free: 128 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008705/0.4077, allocations: 79.91 kB / 0.5007 GB, free: 48 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.226/0.6337, allocations: 80.72 kB / 0.5008 GB, free: 90.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000388/0.6342, allocations: 42.55 kB / 0.5009 GB, free: 90.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004436/0.6386, allocations: 1.283 MB / 0.5021 GB, free: 90.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6387, allocations: 1 kB / 0.5021 GB, free: 90.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003219/0.6419, allocations: 0.5361 MB / 0.5026 GB, free: 90.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003869/0.6423, allocations: 178.8 kB / 0.5028 GB, free: 90.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003446/0.6457, allocations: 2.201 MB / 0.505 GB, free: 89.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.6458, allocations: 0 / 0.505 GB, free: 89.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.6472, allocations: 1.175 MB / 0.5061 GB, free: 88.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/0.65, allocations: 0.5035 MB / 0.5066 GB, free: 88.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/0.6609, allocations: 6.777 MB / 0.5132 GB, free: 84.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001839/0.6628, allocations: 2.225 MB / 0.5154 GB, free: 83.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000666/0.6635, allocations: 167.6 kB / 0.5156 GB, free: 83.47 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.6635, allocations: 0 / 0.5156 GB, free: 83.47 MB / 378.7 MB Notification: Performance of Templates: time 0.07799/0.7415, allocations: 85.92 MB / 0.5995 GB, free: 336 kB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches