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.001093/0.001093, allocations: 114.4 kB / 17.07 MB, free: 5.965 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.00121/0.001211, allocations: 200 kB / 18 MB, free: 5.051 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009822/0.0009823, allocations: 47.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2772, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01269/0.2899, allocations: 10.92 MB / 411.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008341/0.2983, allocations: 3.619 MB / 415.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001965/0.3003, allocations: 67.69 kB / 415.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001871/0.3022, allocations: 0.8695 MB / 416.2 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002429/0.3047, allocations: 0.9048 MB / 417.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008933/0.3056, allocations: 459.4 kB / 417.6 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002669/0.3083, allocations: 2.938 MB / 420.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002796/0.3111, allocations: 2.735 MB / 423.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.3128, allocations: 1.382 MB / 424.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001935/0.3148, allocations: 1.752 MB / 426.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000427/0.3152, allocations: 372 kB / 426.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007274/0.316, allocations: 471.8 kB / 427.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009066/0.3169, allocations: 1.079 MB / 428.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.3184, allocations: 1.672 MB / 429.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004138/0.3226, allocations: 4.875 MB / 434.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3226, allocations: 0 / 434.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3226, allocations: 0 / 434.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.711e-05/0.3227, allocations: 0 / 434.8 MB, free: 6.625 MB / 350.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.005768/0.3284, allocations: 3.394 MB / 438.2 MB, free: 3.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3285, allocations: 15.89 kB / 438.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007167/0.3292, allocations: 337.1 kB / 438.6 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002689/0.3319, allocations: 1.826 MB / 440.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.3321, allocations: 185.4 kB / 440.6 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003258/0.3324, allocations: 255.9 kB / 440.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00465/0.337, allocations: 3.279 MB / 444.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.064e-05/0.3371, allocations: 11.91 kB / 444.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002084/0.3373, allocations: 96 kB / 444.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.3375, allocations: 128.9 kB / 444.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004328/0.3418, allocations: 2.748 MB / 447.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01376/0.3556, allocations: 10.38 MB / 457.4 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.3573, allocations: 1.366 MB / 458.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.3584, allocations: 0.7539 MB / 459.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002827/0.3587, allocations: 208.3 kB / 459.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.137e-05/0.3588, allocations: 51.55 kB / 459.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.016e-06/0.3588, allocations: 0 / 459.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01368/0.3725, allocations: 6.902 MB / 466.7 MB, free: 5.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.3726, allocations: 68.34 kB / 466.8 MB, free: 5.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002329/0.3749, allocations: 1.789 MB / 468.6 MB, free: 4.023 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.549e-05/0.375, allocations: 49.64 kB / 468.6 MB, free: 3.969 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007649/0.3758, allocations: 1.271 MB / 469.9 MB, free: 2.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.3761, allocations: 425.9 kB / 470.3 MB, free: 2.258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004306/0.3765, allocations: 299.2 kB / 470.6 MB, free: 1.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.791e-05/0.3766, allocations: 309.1 kB / 470.9 MB, free: 1.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.3777, allocations: 0.7808 MB / 471.7 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.3791, allocations: 1.296 MB / 473 MB, free: 15.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002586/0.3817, allocations: 2.206 MB / 475.2 MB, free: 12.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.3817, allocations: 11.94 kB / 475.2 MB, free: 12.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003668/0.3854, allocations: 2.466 MB / 477.7 MB, free: 10.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.3854, allocations: 12 kB / 477.7 MB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.3854, allocations: 16 kB / 477.7 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/0.386, allocations: 247.5 kB / 477.9 MB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.3875, allocations: 411.3 kB / 478.3 MB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00289/0.3904, allocations: 3.23 MB / 481.6 MB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.3917, allocations: 131.7 kB / 481.7 MB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.3918, allocations: 68 kB / 481.8 MB, free: 6.016 MB / 398.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.001224/0.393, allocations: 0.8211 MB / 482.6 MB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000271/0.3933, allocations: 185.8 kB / 482.8 MB, free: 5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.3964, allocations: 2.043 MB / 484.8 MB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.3965, allocations: 12 kB / 484.8 MB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3965, allocations: 7.984 kB / 484.8 MB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.3965, allocations: 8.125 kB / 484.8 MB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006898/0.4034, allocations: 4.745 MB / 489.6 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.4034, allocations: 4 kB / 489.6 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.4045, allocations: 259.6 kB / 489.8 MB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005277/0.405, allocations: 199.5 kB / 490 MB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.474e-05/0.4051, allocations: 27.98 kB / 490.1 MB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002397/0.4075, allocations: 3.21 MB / 493.3 MB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.4075, allocations: 4 kB / 493.3 MB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004183/0.4117, allocations: 3.139 MB / 496.4 MB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007232/0.4125, allocations: 422.7 kB / 496.8 MB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001918/0.4127, allocations: 24 kB / 496.9 MB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008724/0.4135, allocations: 103.8 kB / 497 MB, free: 6.324 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.4137, allocations: 80.89 kB / 497 MB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/0.4138, allocations: 40 kB / 497.1 MB, free: 6.207 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001645/0.4154, allocations: 1.22 MB / 498.3 MB, free: 4.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4154, allocations: 0 / 498.3 MB, free: 4.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001487/0.4169, allocations: 487.9 kB / 498.8 MB, free: 4.52 MB / 414.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.0003658/0.4173, allocations: 191 kB / 499 MB, free: 4.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003334/0.4207, allocations: 2.354 MB / 0.4896 GB, free: 1.902 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.4207, allocations: 4 kB / 0.4896 GB, free: 1.898 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.4224, allocations: 1.343 MB / 0.4909 GB, free: 496 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.4243, allocations: 490.5 kB / 0.4913 GB, free: 8 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00703/0.4314, allocations: 4.869 MB / 0.4961 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00163/0.433, allocations: 2.014 MB / 0.4981 GB, free: 9.035 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001209/0.4342, allocations: 0.4921 MB / 0.4985 GB, free: 8.539 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004014/0.4346, allocations: 135.4 kB / 0.4987 GB, free: 8.406 MB / 430.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4347, allocations: 0 / 0.4987 GB, free: 8.406 MB / 430.1 MB Notification: Performance of Templates: time 0.0429/0.4776, allocations: 26.22 MB / 0.5243 GB, free: 14.43 MB / 462.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/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