Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.00139/0.00139, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.335/1.335, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009896/0.0009896, allocations: 58.73 kB / 302.1 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1079, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01235/0.1203, allocations: 10.91 MB / 362.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007/0.1273, allocations: 3.629 MB / 366 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001573/0.1289, allocations: 67.69 kB / 366.1 MB, free: 5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002077/0.131, allocations: 0.815 MB / 366.9 MB, free: 4.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002778/0.1338, allocations: 0.854 MB / 367.8 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.1349, allocations: 459.4 kB / 368.2 MB, free: 2.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1656/0.3006, allocations: 2.934 MB / 371.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004127/0.3047, allocations: 2.736 MB / 373.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002327/0.3071, allocations: 1.363 MB / 375.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002688/0.3098, allocations: 1.76 MB / 377 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007404/0.3105, allocations: 372.6 kB / 377.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.3117, allocations: 472.8 kB / 377.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.3128, allocations: 1.065 MB / 378.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001776/0.3146, allocations: 1.677 MB / 380.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005108/0.3197, allocations: 4.883 MB / 385.5 MB, free: 8.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3197, allocations: 0 / 385.5 MB, free: 8.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3197, allocations: 1.094 kB / 385.5 MB, free: 8.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001108/0.3198, allocations: 0 / 385.5 MB, free: 8.547 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006557/0.3264, allocations: 3.39 MB / 388.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.3264, allocations: 13.61 kB / 388.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008495/0.3273, allocations: 338.7 kB / 389.2 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002971/0.3303, allocations: 1.818 MB / 391 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.3304, allocations: 198.9 kB / 391.2 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000349/0.3308, allocations: 248.3 kB / 391.5 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005022/0.3358, allocations: 3.286 MB / 394.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.313e-05/0.3359, allocations: 5.688 kB / 394.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002223/0.3361, allocations: 104.8 kB / 394.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000129/0.3363, allocations: 121.9 kB / 395 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003928/0.3402, allocations: 2.751 MB / 397.7 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02311/0.3633, allocations: 10.37 MB / 408.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002076/0.3654, allocations: 1.354 MB / 409.4 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00176/0.3672, allocations: 0.7952 MB / 410.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003511/0.3676, allocations: 203 kB / 410.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.3676, allocations: 44.12 kB / 410.5 MB, free: 5.492 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 3.777e-06/0.3677, allocations: 4 kB / 410.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.0204/0.3881, allocations: 6.897 MB / 417.4 MB, free: 14.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.585e-05/0.3882, allocations: 68.39 kB / 417.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004142/0.3923, allocations: 1.785 MB / 419.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.3925, allocations: 49.7 kB / 419.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001217/0.3937, allocations: 1.277 MB / 420.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000459/0.3942, allocations: 426.3 kB / 421 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006942/0.3949, allocations: 299.2 kB / 421.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.395, allocations: 305.1 kB / 421.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001708/0.3967, allocations: 0.7769 MB / 422.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/0.3989, allocations: 1.287 MB / 423.6 MB, free: 8.004 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004131/0.403, allocations: 2.214 MB / 425.8 MB, free: 5.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/0.403, allocations: 4 kB / 425.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005497/0.4085, allocations: 2.479 MB / 428.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.4086, allocations: 12 kB / 428.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.108e-05/0.4086, allocations: 16 kB / 428.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006228/0.4093, allocations: 235.3 kB / 428.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/0.4107, allocations: 422.5 kB / 429 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.4134, allocations: 3.238 MB / 432.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/0.4149, allocations: 127.8 kB / 432.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.4151, allocations: 72 kB / 432.4 MB, free: 14.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001355/0.4164, allocations: 0.8215 MB / 433.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004232/0.4169, allocations: 181.8 kB / 433.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00334/0.4202, allocations: 2.043 MB / 435.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.4202, allocations: 12 kB / 435.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4202, allocations: 0 / 435.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.4203, allocations: 15.91 kB / 435.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008189/0.4285, allocations: 4.732 MB / 440.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4285, allocations: 4.281 kB / 440.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.4296, allocations: 272.9 kB / 440.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005246/0.4301, allocations: 199.3 kB / 440.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.126e-05/0.4302, allocations: 24 kB / 440.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002583/0.4328, allocations: 3.214 MB / 443.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.4328, allocations: 10.69 kB / 443.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004812/0.4377, allocations: 3.133 MB / 447.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.439, allocations: 430.8 kB / 447.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005938/0.4396, allocations: 20 kB / 447.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.4409, allocations: 95.86 kB / 447.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.4411, allocations: 83.45 kB / 447.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.751e-05/0.4412, allocations: 32 kB / 447.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002501/0.4437, allocations: 1.228 MB / 449 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4437, allocations: 0 / 449 MB, free: 13.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002173/0.4459, allocations: 488 kB / 449.4 MB, free: 13.51 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0004725/0.4463, allocations: 194.4 kB / 449.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003592/0.4499, allocations: 2.355 MB / 452 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.45, allocations: 0 / 452 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001831/0.4518, allocations: 1.343 MB / 453.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.4543, allocations: 496.6 kB / 453.8 MB, free: 9.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008382/0.4626, allocations: 4.858 MB / 458.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002096/0.4648, allocations: 2.01 MB / 460.7 MB, free: 2.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001466/0.4663, allocations: 0.4999 MB / 461.2 MB, free: 1.641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005006/0.4668, allocations: 135.4 kB / 461.3 MB, free: 1.508 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4668, allocations: 0 / 461.3 MB, free: 1.508 MB / 366.1 MB Notification: Performance of Templates: time 0.04325/0.51, allocations: 25.74 MB / 487 MB, free: 8.113 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches