Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 200.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 226.6 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007336/0.0007338, allocations: 101.4 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.0002311, allocations: 7.938 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2217, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.008313/0.23, allocations: 10.51 MB / 418.6 MB, free: 17.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005869/0.2359, allocations: 3.802 MB / 422.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.2371, allocations: 71.62 kB / 422.4 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001483/0.2386, allocations: 0.691 MB / 423.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002075/0.2407, allocations: 0.8236 MB / 423.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009113/0.2416, allocations: 363.5 kB / 424.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00291/0.2445, allocations: 3.418 MB / 427.7 MB, free: 8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002617/0.2471, allocations: 2.613 MB / 430.3 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.2493, allocations: 1.148 MB / 431.5 MB, free: 4.172 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002035/0.2513, allocations: 1.599 MB / 433.1 MB, free: 2.566 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004144/0.2518, allocations: 168 kB / 433.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008348/0.2526, allocations: 295.8 kB / 433.5 MB, free: 2.113 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007042/0.2533, allocations: 0.9306 MB / 434.5 MB, free: 1.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001497/0.2548, allocations: 1.521 MB / 436 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004129/0.259, allocations: 4.546 MB / 440.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.259, allocations: 0 / 440.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.259, allocations: 4 kB / 440.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001606/0.2592, allocations: 4 kB / 440.5 MB, free: 11.08 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007314/0.2665, allocations: 3.304 MB / 443.8 MB, free: 7.707 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.2666, allocations: 8.031 kB / 443.9 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001373/0.2679, allocations: 416.4 kB / 444.3 MB, free: 7.289 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004115/0.2721, allocations: 2.064 MB / 446.3 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002044/0.2723, allocations: 238.2 kB / 446.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004581/0.2728, allocations: 299.8 kB / 446.8 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006829/0.2796, allocations: 3.823 MB / 450.7 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-05/0.2797, allocations: 11.98 kB / 450.7 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002649/0.28, allocations: 116 kB / 450.8 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001473/0.2802, allocations: 149.7 kB / 450.9 MB, free: 480 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005851/0.286, allocations: 3.239 MB / 454.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02074/0.3068, allocations: 12.22 MB / 466.4 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002623/0.3095, allocations: 1.936 MB / 468.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001915/0.3114, allocations: 1.172 MB / 469.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003253/0.3118, allocations: 211.5 kB / 469.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.3118, allocations: 43.88 kB / 469.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 4.708e-06/0.3118, allocations: 0 / 469.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.01411/0.3259, allocations: 7.048 MB / 476.8 MB, free: 5.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.326, allocations: 68.72 kB / 476.9 MB, free: 5.852 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003723/0.3298, allocations: 2.016 MB / 478.9 MB, free: 3.797 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002103/0.33, allocations: 53.7 kB / 478.9 MB, free: 3.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.3311, allocations: 1.456 MB / 480.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000565/0.3317, allocations: 0.5276 MB / 480.9 MB, free: 1.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.3318, allocations: 40 kB / 481 MB, free: 1.691 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.332, allocations: 389.8 kB / 481.3 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.3336, allocations: 0.8667 MB / 482.2 MB, free: 448 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001947/0.3355, allocations: 1.446 MB / 483.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003755/0.3393, allocations: 2.494 MB / 486.2 MB, free: 12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.695e-05/0.3393, allocations: 8 kB / 486.2 MB, free: 11.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005337/0.3447, allocations: 3.002 MB / 489.2 MB, free: 8.949 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.3447, allocations: 12 kB / 489.2 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.599e-05/0.3448, allocations: 19.94 kB / 489.2 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009423/0.3457, allocations: 395.2 kB / 489.6 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.3475, allocations: 471.2 kB / 490 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006277/0.3537, allocations: 6.136 MB / 496.2 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/0.3558, allocations: 135.8 kB / 496.3 MB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003175/0.3561, allocations: 91.92 kB / 496.4 MB, free: 1.297 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * 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: 3 * 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: 3 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002214/0.3584, allocations: 0.9265 MB / 497.3 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007675/0.3592, allocations: 217.3 kB / 497.5 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005036/0.3642, allocations: 2.598 MB / 0.4884 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.3642, allocations: 16 kB / 0.4884 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/0.3643, allocations: 4 kB / 0.4884 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.3643, allocations: 7.969 kB / 0.4884 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.3756, allocations: 5.851 MB / 0.4942 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/0.3756, allocations: 4 kB / 0.4942 GB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.3769, allocations: 291.5 kB / 0.4944 GB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.3781, allocations: 403.9 kB / 0.4948 GB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/0.3783, allocations: 36.08 kB / 0.4949 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1979/0.5761, allocations: 7.589 MB / 0.5023 GB, free: 87.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.278e-06/0.5762, allocations: 4.828 kB / 0.5023 GB, free: 87.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007028/0.5832, allocations: 3.834 MB / 0.506 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/0.5844, allocations: 497.4 kB / 0.5065 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005233/0.585, allocations: 35.47 kB / 0.5065 GB, free: 86.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/0.5863, allocations: 102.5 kB / 0.5066 GB, free: 86.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/0.5866, allocations: 115.8 kB / 0.5067 GB, free: 86.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.5867, allocations: 45.39 kB / 0.5068 GB, free: 86.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002167/0.5888, allocations: 1.38 MB / 0.5081 GB, free: 85.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5889, allocations: 0 / 0.5081 GB, free: 85.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002282/0.5911, allocations: 0.5603 MB / 0.5087 GB, free: 85.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * 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 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004544/0.5916, allocations: 198.8 kB / 0.5089 GB, free: 85.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003728/0.5953, allocations: 2.63 MB / 0.5114 GB, free: 84.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.5954, allocations: 3.781 kB / 0.5114 GB, free: 84.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002038/0.5974, allocations: 1.565 MB / 0.513 GB, free: 83.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003803/0.6012, allocations: 0.5243 MB / 0.5135 GB, free: 83.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0083/0.6096, allocations: 7.076 MB / 0.5204 GB, free: 79.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.6112, allocations: 2.212 MB / 0.5225 GB, free: 77.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007607/0.612, allocations: 174.5 kB / 0.5227 GB, free: 77.2 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.612, allocations: 0 / 0.5227 GB, free: 77.2 MB / 378.7 MB Notification: Performance of Templates: time 0.08163/0.6936, allocations: 94.23 MB / 0.6147 GB, free: 15.3 MB / 410.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches