Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 108.5 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009865/0.0009865, allocations: 192 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000935/0.000935, allocations: 43.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2939, allocations: 49.44 MB / 400.8 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01302/0.3069, allocations: 11.42 MB / 412.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008424/0.3154, allocations: 3.536 MB / 415.7 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002629/0.318, allocations: 71.69 kB / 415.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003124/0.3212, allocations: 0.8892 MB / 416.7 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003897/0.3252, allocations: 0.9669 MB / 417.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.3269, allocations: 439.4 kB / 418.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00542/0.3324, allocations: 3.748 MB / 421.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004044/0.3365, allocations: 2.869 MB / 424.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002613/0.3391, allocations: 1.651 MB / 426.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/0.3423, allocations: 1.973 MB / 428.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001083/0.3434, allocations: 420 kB / 428.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/0.3451, allocations: 0.4998 MB / 429.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002009/0.3471, allocations: 1.192 MB / 430.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004373/0.3515, allocations: 1.933 MB / 432.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008562/0.3601, allocations: 5.541 MB / 437.9 MB, free: 3.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.385e-05/0.3602, allocations: 8 kB / 437.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.638e-06/0.3602, allocations: 0 / 437.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002971/0.3605, allocations: 0 / 437.9 MB, free: 3.547 MB / 350.1 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.00833/0.3688, allocations: 3.813 MB / 441.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.3689, allocations: 11.89 kB / 441.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.3699, allocations: 392.5 kB / 442.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003418/0.3734, allocations: 2.052 MB / 444.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.3735, allocations: 210.1 kB / 444.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004133/0.374, allocations: 287.8 kB / 444.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006043/0.38, allocations: 3.869 MB / 448.5 MB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.764e-05/0.3801, allocations: 3.984 kB / 448.5 MB, free: 8.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002499/0.3804, allocations: 124 kB / 448.6 MB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001202/0.3805, allocations: 121.5 kB / 448.7 MB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005611/0.3861, allocations: 3.246 MB / 452 MB, free: 5.211 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02108/0.4072, allocations: 11.78 MB / 463.8 MB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003324/0.4106, allocations: 3.672 MB / 467.4 MB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002109/0.4127, allocations: 1.25 MB / 468.7 MB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002713/0.413, allocations: 124.2 kB / 468.8 MB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.558e-05/0.4131, allocations: 55.88 kB / 468.9 MB, free: 3.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 4.379e-06/0.4131, allocations: 0 / 468.9 MB, free: 3.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01424/0.4274, allocations: 7.316 MB / 476.2 MB, free: 12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.4274, allocations: 68.72 kB / 476.3 MB, free: 11.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003608/0.431, allocations: 2.06 MB / 478.3 MB, free: 9.816 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002161/0.4313, allocations: 49.7 kB / 478.4 MB, free: 9.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001092/0.4324, allocations: 1.374 MB / 479.7 MB, free: 8.371 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005746/0.433, allocations: 0.5121 MB / 480.2 MB, free: 7.852 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006682/0.4337, allocations: 347.2 kB / 480.6 MB, free: 7.504 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.4338, allocations: 301.1 kB / 480.9 MB, free: 7.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.4353, allocations: 0.8705 MB / 481.8 MB, free: 6.336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001768/0.4371, allocations: 1.369 MB / 483.1 MB, free: 4.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003083/0.4401, allocations: 2.33 MB / 485.4 MB, free: 2.223 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.4402, allocations: 4 kB / 485.5 MB, free: 2.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005627/0.4458, allocations: 3.269 MB / 488.7 MB, free: 14.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.4459, allocations: 14.5 kB / 488.7 MB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.57e-05/0.4459, allocations: 16 kB / 488.8 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002395/0.4483, allocations: 0.8448 MB / 489.6 MB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.4496, allocations: 343.4 kB / 489.9 MB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/0.4677, allocations: 20.58 MB / 0.4985 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002086/0.4698, allocations: 95.83 kB / 0.4986 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003922/0.4702, allocations: 76 kB / 0.4987 GB, free: 7.359 MB / 430.1 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 (booleanReplicator3.y[3],booleanReplicator2.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 (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002407/0.4726, allocations: 0.9438 MB / 0.4996 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007104/0.4734, allocations: 213.4 kB / 0.4998 GB, free: 6.195 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004955/0.4783, allocations: 2.632 MB / 0.5024 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.4784, allocations: 12 kB / 0.5024 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-05/0.4784, allocations: 12 kB / 0.5024 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.4784, allocations: 7.969 kB / 0.5024 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.4908, allocations: 5.875 MB / 0.5082 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-05/0.4909, allocations: 7.938 kB / 0.5082 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007822/0.4917, allocations: 195.7 kB / 0.5084 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002042/0.4938, allocations: 0.7269 MB / 0.5091 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.4939, allocations: 39.92 kB / 0.5091 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01531/0.5092, allocations: 18.16 MB / 0.5268 GB, free: 8.867 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.5093, allocations: 7.938 kB / 0.5269 GB, free: 8.859 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005982/0.5153, allocations: 3.798 MB / 0.5306 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00131/0.5166, allocations: 486.3 kB / 0.531 GB, free: 4.445 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005753/0.5172, allocations: 39.98 kB / 0.5311 GB, free: 4.406 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.5186, allocations: 99.89 kB / 0.5312 GB, free: 4.309 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003794/0.519, allocations: 145 kB / 0.5313 GB, free: 4.168 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.5192, allocations: 47.98 kB / 0.5313 GB, free: 4.121 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002699/0.5219, allocations: 1.396 MB / 0.5327 GB, free: 2.703 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5219, allocations: 0 / 0.5327 GB, free: 2.703 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003523/0.5254, allocations: 0.6679 MB / 0.5334 GB, free: 2.035 MB / 462.1 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005611/0.526, allocations: 207 kB / 0.5336 GB, free: 1.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2367/0.7627, allocations: 3.446 MB / 0.5369 GB, free: 129.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/0.7628, allocations: 1.625 kB / 0.5369 GB, free: 129.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003632/0.7664, allocations: 2.215 MB / 0.5391 GB, free: 128 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004216/0.7707, allocations: 0.6745 MB / 0.5397 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.7814, allocations: 5.646 MB / 0.5453 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002603/0.784, allocations: 2.288 MB / 0.5475 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001784/0.7858, allocations: 0.4995 MB / 0.548 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005517/0.7864, allocations: 130.5 kB / 0.5481 GB, free: 125 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/0.7864, allocations: 0 / 0.5481 GB, free: 125 MB / 462.1 MB Notification: Performance of Templates: time 0.05721/0.8436, allocations: 36.61 MB / 0.5839 GB, free: 91.86 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches