Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009148/0.0009148, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007117/0.0007118, allocations: 100.1 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002094/0.0002094, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2352, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008443/0.2437, allocations: 10.11 MB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006562/0.2503, allocations: 3.397 MB / 421 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002424/0.2528, allocations: 59.69 kB / 421.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002277/0.2551, allocations: 0.6757 MB / 421.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.2583, allocations: 0.8157 MB / 422.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.2594, allocations: 283.5 kB / 422.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003965/0.2633, allocations: 3.912 MB / 426.7 MB, free: 8.547 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002154/0.2655, allocations: 1.954 MB / 428.7 MB, free: 6.559 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/0.2675, allocations: 1.233 MB / 429.9 MB, free: 5.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002043/0.2696, allocations: 1.607 MB / 431.5 MB, free: 3.707 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003797/0.27, allocations: 184 kB / 431.7 MB, free: 3.527 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008158/0.2708, allocations: 251.9 kB / 432 MB, free: 3.281 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007057/0.2715, allocations: 0.915 MB / 432.9 MB, free: 2.363 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008817/0.2724, allocations: 0.6641 MB / 433.5 MB, free: 1.691 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003992/0.2764, allocations: 4.41 MB / 438 MB, free: 13.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2765, allocations: 0 / 438 MB, free: 13.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2765, allocations: 0 / 438 MB, free: 13.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001834/0.2767, allocations: 4 kB / 438 MB, free: 13.27 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.007336/0.284, allocations: 3.264 MB / 441.2 MB, free: 9.934 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.2841, allocations: 12.03 kB / 441.2 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001361/0.2854, allocations: 391.7 kB / 441.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003995/0.2894, allocations: 1.923 MB / 443.5 MB, free: 7.559 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.2897, allocations: 217.7 kB / 443.7 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004801/0.2901, allocations: 279.9 kB / 444 MB, free: 7.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007022/0.2972, allocations: 3.838 MB / 447.9 MB, free: 3.145 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.079e-05/0.2973, allocations: 7.938 kB / 447.9 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002577/0.2976, allocations: 116 kB / 448 MB, free: 3.023 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.2977, allocations: 125.5 kB / 448.1 MB, free: 2.898 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005865/0.3036, allocations: 3.234 MB / 451.3 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02021/0.3238, allocations: 11.97 MB / 463.3 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003338/0.3272, allocations: 3.66 MB / 467 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001962/0.3292, allocations: 1.236 MB / 468.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002478/0.3295, allocations: 126.3 kB / 468.3 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/0.3295, allocations: 59.81 kB / 468.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 4.088e-06/0.3295, allocations: 0 / 468.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01453/0.3441, allocations: 7.335 MB / 475.7 MB, free: 6.258 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.3442, allocations: 72.67 kB / 475.8 MB, free: 6.176 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003129/0.3473, allocations: 2.056 MB / 477.8 MB, free: 4.078 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.3475, allocations: 53.7 kB / 477.9 MB, free: 4.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.3485, allocations: 1.374 MB / 479.3 MB, free: 2.629 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004327/0.349, allocations: 0.5122 MB / 479.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.922e-05/0.3491, allocations: 44 kB / 479.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.3493, allocations: 373.9 kB / 480.2 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.3506, allocations: 0.8666 MB / 481.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.3522, allocations: 1.361 MB / 482.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.3538, allocations: 1.087 MB / 483.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-06/0.3538, allocations: 8 kB / 483.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005493/0.3593, allocations: 3.273 MB / 486.8 MB, free: 10.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.3594, allocations: 10.66 kB / 486.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.3594, allocations: 16.5 kB / 486.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/0.3617, allocations: 0.8608 MB / 487.7 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.3629, allocations: 339.4 kB / 488 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01572/0.3786, allocations: 18.82 MB / 0.495 GB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/0.3805, allocations: 99.89 kB / 0.495 GB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.3806, allocations: 72 kB / 0.4951 GB, free: 5.113 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001811/0.3824, allocations: 0.9327 MB / 0.496 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003569/0.3828, allocations: 221.3 kB / 0.4962 GB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00406/0.3869, allocations: 2.621 MB / 0.4988 GB, free: 1.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.3869, allocations: 15.95 kB / 0.4988 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/0.3869, allocations: 8 kB / 0.4988 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.3869, allocations: 7.969 kB / 0.4988 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2266/0.6136, allocations: 5.904 MB / 0.5046 GB, free: 87.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/0.6136, allocations: 3.812 kB / 0.5046 GB, free: 87.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007699/0.6144, allocations: 201 kB / 0.5048 GB, free: 87.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001662/0.6161, allocations: 0.7282 MB / 0.5055 GB, free: 87.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.169e-05/0.6162, allocations: 33.84 kB / 0.5055 GB, free: 87.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/0.6271, allocations: 16.72 MB / 0.5219 GB, free: 73.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.6272, allocations: 7.188 kB / 0.5219 GB, free: 73.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005087/0.6323, allocations: 3.789 MB / 0.5256 GB, free: 71.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.6335, allocations: 489.1 kB / 0.526 GB, free: 71.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002673/0.6338, allocations: 38.2 kB / 0.5261 GB, free: 71.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009798/0.6348, allocations: 112.2 kB / 0.5262 GB, free: 71.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003201/0.6351, allocations: 139.7 kB / 0.5263 GB, free: 71.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.644e-05/0.6352, allocations: 49.83 kB / 0.5264 GB, free: 71.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001856/0.6371, allocations: 1.391 MB / 0.5277 GB, free: 70.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6371, allocations: 0 / 0.5277 GB, free: 70.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002281/0.6394, allocations: 0.6562 MB / 0.5284 GB, free: 69.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003493/0.6397, allocations: 170.2 kB / 0.5285 GB, free: 69.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00394/0.6437, allocations: 3.434 MB / 0.5319 GB, free: 66.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.6437, allocations: 0 / 0.5319 GB, free: 66.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00221/0.6459, allocations: 2.203 MB / 0.534 GB, free: 63.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00336/0.6493, allocations: 0.6603 MB / 0.5347 GB, free: 63.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00814/0.6575, allocations: 6.75 MB / 0.5413 GB, free: 56.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/0.6589, allocations: 2.247 MB / 0.5435 GB, free: 53.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005162/0.6594, allocations: 143.4 kB / 0.5436 GB, free: 53.84 MB / 378.7 MB Notification: Performance of SimCode: time 8.61e-07/0.6595, allocations: 0 / 0.5436 GB, free: 53.84 MB / 378.7 MB Notification: Performance of Templates: time 0.3173/0.9767, allocations: 187.6 MB / 0.7267 GB, free: 116.9 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches