Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008232/0.0008232, allocations: 100.9 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009561/0.0009561, allocations: 200.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.7 MB / 246.4 MB, free: 11.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002351/0.0002352, allocations: 4 kB / 307.1 MB, free: 1.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1171, allocations: 51.52 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01294/0.1301, allocations: 10.53 MB / 369.2 MB, free: 3.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2204/0.3506, allocations: 3.793 MB / 373 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003126/0.3538, allocations: 67.38 kB / 373 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.3561, allocations: 0.6978 MB / 373.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00379/0.3599, allocations: 0.8143 MB / 374.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.3614, allocations: 366.3 kB / 374.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005095/0.3665, allocations: 3.371 MB / 378.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003022/0.3695, allocations: 2.165 MB / 380.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002336/0.3719, allocations: 1.148 MB / 381.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002375/0.3743, allocations: 1.605 MB / 383.2 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003697/0.3746, allocations: 169.4 kB / 383.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008549/0.3755, allocations: 269.9 kB / 383.6 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001118/0.3766, allocations: 0.9249 MB / 384.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009302/0.3776, allocations: 0.6408 MB / 385.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00395/0.3815, allocations: 4.554 MB / 389.7 MB, free: 5.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3815, allocations: 0 / 389.7 MB, free: 5.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3816, allocations: 4 kB / 389.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001131/0.3817, allocations: 1 kB / 389.7 MB, free: 5.633 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.006544/0.3882, allocations: 3.338 MB / 393.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.3883, allocations: 10.34 kB / 393.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.3895, allocations: 413.8 kB / 393.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003101/0.3926, allocations: 2.006 MB / 395.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.3928, allocations: 229.4 kB / 395.7 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000451/0.3933, allocations: 297.6 kB / 396 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005724/0.399, allocations: 3.832 MB / 399.8 MB, free: 252 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.336e-05/0.3991, allocations: 12.31 kB / 399.8 MB, free: 244 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002446/0.3994, allocations: 124.1 kB / 400 MB, free: 144 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/0.3995, allocations: 148.6 kB / 400.1 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005208/0.4047, allocations: 3.238 MB / 403.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01835/0.4231, allocations: 12.2 MB / 415.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002431/0.4256, allocations: 1.936 MB / 417.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/0.4273, allocations: 1.163 MB / 418.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003047/0.4276, allocations: 214.4 kB / 418.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.4277, allocations: 51.88 kB / 418.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 6.522e-06/0.4277, allocations: 3.984 kB / 418.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.0123/0.44, allocations: 7.031 MB / 425.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.4401, allocations: 72.72 kB / 426 MB, free: 5.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002667/0.4427, allocations: 2.024 MB / 428 MB, free: 3.914 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.07e-05/0.4428, allocations: 49.7 kB / 428.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009332/0.4438, allocations: 1.459 MB / 429.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003799/0.4442, allocations: 0.5259 MB / 430.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.4443, allocations: 40 kB / 430.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4444, allocations: 383.4 kB / 430.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.4457, allocations: 0.8745 MB / 431.4 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/0.4474, allocations: 1.446 MB / 432.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.4489, allocations: 1.105 MB / 433.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.449, allocations: 8 kB / 433.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004637/0.4536, allocations: 2.998 MB / 436.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.4537, allocations: 19.94 kB / 436.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.447e-05/0.4537, allocations: 20 kB / 437 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008146/0.4545, allocations: 393.2 kB / 437.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/0.4561, allocations: 471.2 kB / 437.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005572/0.4616, allocations: 6.143 MB / 443.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/0.4635, allocations: 135.7 kB / 444.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.4636, allocations: 84 kB / 444.2 MB, free: 3.09 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.00224/0.4659, allocations: 0.9359 MB / 445.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005592/0.4664, allocations: 213.4 kB / 445.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004131/0.4706, allocations: 2.6 MB / 447.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.4706, allocations: 16 kB / 447.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.066e-06/0.4706, allocations: 4 kB / 447.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.4706, allocations: 7.969 kB / 447.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009404/0.4801, allocations: 5.847 MB / 453.8 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.4801, allocations: 4 kB / 453.8 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.4813, allocations: 295.5 kB / 454.1 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009084/0.4822, allocations: 403.7 kB / 454.5 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.4823, allocations: 43.98 kB / 454.5 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007158/0.4895, allocations: 7.586 MB / 462.1 MB, free: 472 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.4895, allocations: 4 kB / 462.1 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006406/0.4959, allocations: 3.83 MB / 465.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001605/0.4975, allocations: 498.2 kB / 466.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.4978, allocations: 40 kB / 466.5 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.4988, allocations: 99.83 kB / 466.6 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.4991, allocations: 109.1 kB / 466.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.386e-05/0.4992, allocations: 51.92 kB / 466.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00244/0.5016, allocations: 1.374 MB / 468.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5016, allocations: 0 / 468.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002473/0.5041, allocations: 0.5702 MB / 468.7 MB, free: 9.77 MB / 382.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.0003797/0.5045, allocations: 175 kB / 468.8 MB, free: 9.586 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004245/0.5087, allocations: 2.621 MB / 471.4 MB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5088, allocations: 0 / 471.4 MB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002179/0.5109, allocations: 1.57 MB / 473 MB, free: 5.293 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/0.5139, allocations: 0.5284 MB / 473.5 MB, free: 4.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.5268, allocations: 7.004 MB / 480.6 MB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002879/0.5297, allocations: 2.259 MB / 482.8 MB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002604/0.5324, allocations: 0.5338 MB / 483.3 MB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000975/0.5333, allocations: 163.4 kB / 483.5 MB, free: 10.71 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.5334, allocations: 0 / 483.5 MB, free: 10.71 MB / 398.1 MB Notification: Performance of Templates: time 0.06325/0.5966, allocations: 28.48 MB / 0.5 GB, free: 14.51 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches