Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 110.1 kB / 17.06 MB, free: 6.02 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.001365/0.001365, allocations: 191 kB / 18 MB, free: 5.102 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.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 47.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3467, allocations: 49.42 MB / 400.7 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01899/0.3658, allocations: 15.19 MB / 415.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.3777, allocations: 5.078 MB / 421 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003673/0.3814, allocations: 95.62 kB / 421.1 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004206/0.3856, allocations: 1.126 MB / 422.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005688/0.3914, allocations: 1.305 MB / 423.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003217/0.3947, allocations: 0.9049 MB / 424.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006349/0.401, allocations: 3.612 MB / 428.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005544/0.4066, allocations: 3.31 MB / 431.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003448/0.4101, allocations: 1.737 MB / 433.1 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004047/0.4142, allocations: 2.047 MB / 435.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001669/0.4159, allocations: 480 kB / 435.6 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002747/0.4186, allocations: 0.6872 MB / 436.3 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00185/0.4205, allocations: 1.134 MB / 437.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004088/0.4246, allocations: 2.05 MB / 439.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008488/0.4331, allocations: 6.266 MB / 445.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.4331, allocations: 0 / 445.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4332, allocations: 4 kB / 445.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002022/0.4334, allocations: 0 / 445.8 MB, free: 11.8 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01252/0.4459, allocations: 4.242 MB / 450 MB, free: 7.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.4459, allocations: 11.89 kB / 450 MB, free: 7.469 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003615/0.4496, allocations: 0.6211 MB / 450.6 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005918/0.4555, allocations: 2.28 MB / 452.9 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000308/0.4558, allocations: 238.6 kB / 453.1 MB, free: 4.273 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001285/0.4571, allocations: 316 kB / 453.4 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01099/0.4682, allocations: 4.047 MB / 457.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.4683, allocations: 4 kB / 457.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006395/0.469, allocations: 127.9 kB / 457.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001739/0.4691, allocations: 150.2 kB / 457.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007528/0.4767, allocations: 3.382 MB / 461.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02494/0.5016, allocations: 13.14 MB / 474.3 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004506/0.5062, allocations: 3.966 MB / 478.3 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001661/0.5079, allocations: 0.984 MB / 479.2 MB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005312/0.5132, allocations: 2.653 MB / 481.9 MB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/0.5133, allocations: 43.56 kB / 481.9 MB, free: 6.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 5.43e-06/0.5133, allocations: 4 kB / 481.9 MB, free: 6.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01269/0.526, allocations: 5.991 MB / 487.9 MB, free: 268 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.5261, allocations: 68.72 kB / 488 MB, free: 184 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003402/0.5295, allocations: 1.897 MB / 489.9 MB, free: 14.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.5296, allocations: 45.7 kB / 489.9 MB, free: 14.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00106/0.5307, allocations: 1.501 MB / 491.4 MB, free: 12.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004261/0.5311, allocations: 496.9 kB / 491.9 MB, free: 12.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006031/0.5318, allocations: 331.2 kB / 492.3 MB, free: 11.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.5319, allocations: 305.1 kB / 492.6 MB, free: 11.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.5332, allocations: 0.7652 MB / 493.3 MB, free: 10.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.5348, allocations: 1.371 MB / 494.7 MB, free: 9.141 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003131/0.5379, allocations: 2.32 MB / 497 MB, free: 6.555 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-05/0.538, allocations: 4 kB / 497 MB, free: 6.551 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004225/0.5422, allocations: 2.473 MB / 499.5 MB, free: 4.059 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.5422, allocations: 16 kB / 499.5 MB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.459e-05/0.5423, allocations: 20 kB / 499.5 MB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003889/0.5427, allocations: 122.8 kB / 499.6 MB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/0.5445, allocations: 479.2 kB / 0.4884 GB, free: 3.426 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.5458, allocations: 1.413 MB / 0.4898 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.5474, allocations: 107.9 kB / 0.4899 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.5476, allocations: 95.92 kB / 0.49 GB, free: 1.672 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001847/0.5494, allocations: 0.9773 MB / 0.4909 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005085/0.5499, allocations: 205.5 kB / 0.4911 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003566/0.5535, allocations: 1.961 MB / 0.493 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/0.5535, allocations: 16 kB / 0.493 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5536, allocations: 0 / 0.493 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.5536, allocations: 7.969 kB / 0.4931 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008901/0.5625, allocations: 4.991 MB / 0.4979 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.5625, allocations: 0 / 0.4979 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/0.5639, allocations: 311.5 kB / 0.4982 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003148/0.5642, allocations: 94.78 kB / 0.4983 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.5644, allocations: 31.98 kB / 0.4983 GB, free: 8.938 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00108/0.5654, allocations: 1.375 MB / 0.4997 GB, free: 7.422 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5655, allocations: 3.938 kB / 0.4997 GB, free: 7.418 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004608/0.5701, allocations: 3.086 MB / 0.5027 GB, free: 4.273 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/0.5711, allocations: 454.5 kB / 0.5031 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000472/0.5716, allocations: 28 kB / 0.5032 GB, free: 3.781 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/0.5729, allocations: 83.89 kB / 0.5032 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/0.5731, allocations: 89.08 kB / 0.5033 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.5732, allocations: 48.05 kB / 0.5034 GB, free: 3.566 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002562/0.5758, allocations: 1.285 MB / 0.5046 GB, free: 2.258 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5758, allocations: 0 / 0.5046 GB, free: 2.258 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001881/0.5777, allocations: 0.5351 MB / 0.5052 GB, free: 1.723 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(1,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.0003756/0.5781, allocations: 163 kB / 0.5053 GB, free: 1.551 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003719/0.5818, allocations: 2.216 MB / 0.5075 GB, free: 15.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/0.5818, allocations: 0 / 0.5075 GB, free: 15.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001716/0.5836, allocations: 1.174 MB / 0.5086 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002909/0.5865, allocations: 0.5152 MB / 0.5091 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/0.5969, allocations: 5.588 MB / 0.5146 GB, free: 7.902 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00274/0.5997, allocations: 2.255 MB / 0.5168 GB, free: 5.609 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002207/0.6019, allocations: 0.517 MB / 0.5173 GB, free: 5.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006988/0.6026, allocations: 151.4 kB / 0.5174 GB, free: 4.941 MB / 446.1 MB Notification: Performance of SimCode: time 9.41e-07/0.6026, allocations: 0 / 0.5174 GB, free: 4.941 MB / 446.1 MB Notification: Performance of Templates: time 0.2727/0.8753, allocations: 26.58 MB / 0.5434 GB, free: 122.2 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches