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.001081/0.001081, allocations: 110.6 kB / 16.51 MB, free: 6.715 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.001074/0.001074, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.301/1.301, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009183/0.0009182, allocations: 46.39 kB / 300 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08763/0.08857, allocations: 49.45 MB / 349.4 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01183/0.1004, allocations: 11.78 MB / 361.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007226/0.1077, allocations: 3.941 MB / 365.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001715/0.1094, allocations: 71.62 kB / 365.2 MB, free: 4.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.1114, allocations: 0.7496 MB / 365.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002567/0.114, allocations: 0.8742 MB / 366.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.1151, allocations: 0.4917 MB / 367.3 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2122/0.3274, allocations: 3.708 MB / 371 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00536/0.3328, allocations: 2.629 MB / 373.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002872/0.3357, allocations: 1.382 MB / 375 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004047/0.3397, allocations: 1.951 MB / 377 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002644/0.3424, allocations: 262.9 kB / 377.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002945/0.3454, allocations: 387.2 kB / 377.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002794/0.3482, allocations: 1.08 MB / 378.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005379/0.3536, allocations: 1.76 MB / 380.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/0.3642, allocations: 5.454 MB / 385.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.3642, allocations: 1.031 kB / 385.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3642, allocations: 0 / 385.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002921/0.3645, allocations: 0 / 385.9 MB, free: 7.641 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.01168/0.3762, allocations: 3.937 MB / 389.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.3763, allocations: 8.906 kB / 389.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001336/0.3776, allocations: 407.8 kB / 390.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003944/0.3816, allocations: 2.066 MB / 392.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002242/0.3818, allocations: 228.5 kB / 392.5 MB, free: 3.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005662/0.3824, allocations: 302.6 kB / 392.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008546/0.391, allocations: 3.847 MB / 396.7 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-05/0.3911, allocations: 10.28 kB / 396.7 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002848/0.3914, allocations: 121.8 kB / 396.8 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001659/0.3915, allocations: 154.6 kB / 397 MB, free: 0.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005714/0.3973, allocations: 3.259 MB / 400.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02173/0.419, allocations: 12.15 MB / 412.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002601/0.4217, allocations: 1.943 MB / 414.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/0.4236, allocations: 1.159 MB / 415.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003938/0.424, allocations: 211.4 kB / 415.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.424, allocations: 47.88 kB / 415.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.256e-06/0.424, allocations: 0 / 415.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01419/0.4382, allocations: 7.006 MB / 422.7 MB, free: 8.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.4383, allocations: 68.72 kB / 422.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003309/0.4416, allocations: 2.032 MB / 424.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.4418, allocations: 53.7 kB / 424.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001151/0.4429, allocations: 1.452 MB / 426.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000529/0.4435, allocations: 0.5391 MB / 426.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006057/0.4441, allocations: 352.7 kB / 427.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.4443, allocations: 314.8 kB / 427.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.4456, allocations: 0.8706 MB / 428.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001709/0.4474, allocations: 1.451 MB / 429.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003212/0.4506, allocations: 2.502 MB / 432.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/0.4506, allocations: 11.98 kB / 432.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005098/0.4557, allocations: 3.005 MB / 435.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.4558, allocations: 12 kB / 435.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.232e-05/0.4558, allocations: 20.48 kB / 435.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000985/0.4568, allocations: 395 kB / 435.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/0.4585, allocations: 473.1 kB / 436.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005743/0.4643, allocations: 6.14 MB / 442.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002198/0.4665, allocations: 127.8 kB / 442.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002382/0.4668, allocations: 87.97 kB / 442.6 MB, free: 3.547 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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001905/0.4687, allocations: 0.9383 MB / 443.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005354/0.4692, allocations: 217.3 kB / 443.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004555/0.4738, allocations: 2.593 MB / 446.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.4738, allocations: 16 kB / 446.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.4738, allocations: 4.109 kB / 446.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.4739, allocations: 11.91 kB / 446.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.4839, allocations: 5.858 MB / 452.2 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.4839, allocations: 4 kB / 452.2 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.4852, allocations: 285.4 kB / 452.5 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.4863, allocations: 411 kB / 452.9 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.4864, allocations: 47.36 kB / 453 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00727/0.4937, allocations: 7.572 MB / 460.5 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4937, allocations: 8.062 kB / 460.5 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006238/0.5, allocations: 3.84 MB / 464.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/0.5012, allocations: 486.2 kB / 464.9 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003026/0.5016, allocations: 39.98 kB / 464.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.5027, allocations: 87.89 kB / 465 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002856/0.5029, allocations: 120.5 kB / 465.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.855e-05/0.5031, allocations: 43.98 kB / 465.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00243/0.5055, allocations: 1.382 MB / 466.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5055, allocations: 0 / 466.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002404/0.5079, allocations: 0.5664 MB / 467.1 MB, free: 10.38 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,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.0004511/0.5084, allocations: 219.8 kB / 467.3 MB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004013/0.5124, allocations: 2.623 MB / 469.9 MB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5124, allocations: 0.9375 kB / 469.9 MB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0021/0.5145, allocations: 1.573 MB / 471.5 MB, free: 5.969 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.5171, allocations: 0.5219 MB / 472 MB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/0.5284, allocations: 7.234 MB / 479.3 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002142/0.5306, allocations: 2.263 MB / 481.5 MB, free: 11.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001946/0.5326, allocations: 0.5259 MB / 482 MB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/0.5331, allocations: 163.4 kB / 482.2 MB, free: 11.18 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5331, allocations: 4 kB / 482.2 MB, free: 11.18 MB / 398.1 MB Notification: Performance of Templates: time 0.05289/0.586, allocations: 29.66 MB / 0.4999 GB, free: 13.86 MB / 430.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