Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 91.33 kB / 16.31 MB, free: 5.609 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.001309/0.001309, allocations: 180.9 kB / 17.21 MB, free: 5.523 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.433/1.433, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002669, allocations: 9.344 kB / 300.8 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.125, allocations: 50.42 MB / 351.3 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01224/0.1372, allocations: 10.49 MB / 361.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00848/0.1458, allocations: 3.748 MB / 365.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002068/0.1479, allocations: 67.69 kB / 365.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002054/0.1499, allocations: 0.6949 MB / 366.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002881/0.1528, allocations: 0.808 MB / 367.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.154, allocations: 359.5 kB / 367.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004029/0.158, allocations: 3.371 MB / 370.8 MB, free: 416 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2626/0.4206, allocations: 2.155 MB / 372.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00331/0.424, allocations: 1.142 MB / 374.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004331/0.4284, allocations: 1.604 MB / 375.7 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007438/0.4292, allocations: 168.6 kB / 375.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.4304, allocations: 253.2 kB / 376.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001459/0.4319, allocations: 0.925 MB / 377 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001215/0.4331, allocations: 0.6432 MB / 377.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007416/0.4406, allocations: 4.54 MB / 382.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.4406, allocations: 0 / 382.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.4406, allocations: 1 kB / 382.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002107/0.4408, allocations: 0 / 382.2 MB, free: 9.402 MB / 302.1 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.009745/0.4506, allocations: 3.339 MB / 385.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.4506, allocations: 9.375 kB / 385.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001604/0.4522, allocations: 412.2 kB / 386 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.456, allocations: 1.997 MB / 388 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001974/0.4562, allocations: 237.2 kB / 388.2 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004589/0.4567, allocations: 300.7 kB / 388.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006567/0.4632, allocations: 3.829 MB / 392.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.136e-05/0.4633, allocations: 10.02 kB / 392.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002702/0.4636, allocations: 122.7 kB / 392.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/0.4638, allocations: 147.3 kB / 392.6 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00491/0.4687, allocations: 3.232 MB / 395.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01809/0.4868, allocations: 12.21 MB / 408 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002486/0.4893, allocations: 1.933 MB / 410 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001778/0.4911, allocations: 1.177 MB / 411.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003326/0.4915, allocations: 211.2 kB / 411.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.4915, allocations: 51.88 kB / 411.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=139): time 3.838e-06/0.4915, allocations: 0 / 411.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=155): time 0.01568/0.5072, allocations: 7.024 MB / 418.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.5073, allocations: 68.72 kB / 418.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00362/0.5109, allocations: 2.012 MB / 420.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.5111, allocations: 53.7 kB / 420.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001278/0.5124, allocations: 1.465 MB / 422 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005739/0.513, allocations: 0.5308 MB / 422.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.5131, allocations: 40 kB / 422.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002557/0.5133, allocations: 385.8 kB / 423 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.5148, allocations: 0.8706 MB / 423.8 MB, free: 10 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.5166, allocations: 1.441 MB / 425.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.5182, allocations: 1.118 MB / 426.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.5183, allocations: 4 kB / 426.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004852/0.5231, allocations: 2.999 MB / 429.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.85e-05/0.5232, allocations: 12 kB / 429.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/0.5232, allocations: 23.38 kB / 429.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009565/0.5242, allocations: 393.1 kB / 429.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.5258, allocations: 466.9 kB / 430.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006174/0.532, allocations: 6.143 MB / 436.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/0.5342, allocations: 143.7 kB / 436.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/0.5344, allocations: 91.98 kB / 436.6 MB, free: 12.68 MB / 350.1 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.003083/0.5375, allocations: 0.9188 MB / 437.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005906/0.538, allocations: 217.4 kB / 437.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004526/0.5426, allocations: 2.598 MB / 440.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.5426, allocations: 20 kB / 440.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.5426, allocations: 4 kB / 440.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.5426, allocations: 7.969 kB / 440.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009473/0.5521, allocations: 5.85 MB / 446.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5522, allocations: 0 / 446.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.5534, allocations: 287.6 kB / 446.5 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009544/0.5543, allocations: 410 kB / 446.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.5544, allocations: 39.98 kB / 447 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007118/0.5616, allocations: 7.586 MB / 454.6 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.5616, allocations: 4 kB / 454.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006328/0.5679, allocations: 3.832 MB / 458.4 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/0.5694, allocations: 498.1 kB / 458.9 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002767/0.5697, allocations: 39.98 kB / 458.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.5707, allocations: 95.89 kB / 459 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002314/0.5709, allocations: 113 kB / 459.1 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.5711, allocations: 52.17 kB / 459.2 MB, free: 5.332 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003118/0.5742, allocations: 1.363 MB / 460.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.5742, allocations: 7.938 kB / 460.5 MB, free: 3.941 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004299/0.5785, allocations: 0.5664 MB / 461.1 MB, free: 3.375 MB / 366.1 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.000811/0.5793, allocations: 170.9 kB / 461.3 MB, free: 3.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005435/0.5848, allocations: 2.633 MB / 463.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/0.5848, allocations: 0 / 463.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002663/0.5875, allocations: 1.569 MB / 465.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003797/0.5913, allocations: 0.5237 MB / 466 MB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01555/0.6069, allocations: 6.997 MB / 473 MB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003884/0.6108, allocations: 2.255 MB / 475.3 MB, free: 5.016 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003049/0.6139, allocations: 0.5298 MB / 475.8 MB, free: 4.484 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.6149, allocations: 159.4 kB / 475.9 MB, free: 4.328 MB / 382.1 MB Notification: Performance of SimCode: time 2.535e-06/0.6149, allocations: 0 / 475.9 MB, free: 4.328 MB / 382.1 MB Notification: Performance of Templates: time 0.06636/0.6813, allocations: 28.44 MB / 0.4926 GB, free: 8.188 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches