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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 175.7 kB / 17.03 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 223.3 MB / 241 MB, free: 11.81 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007743/0.0007743, allocations: 100.5 kB / 292.2 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.0002597, allocations: 4 kB / 351.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2093, allocations: 50.41 MB / 402.2 MB, free: 32.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01015/0.2195, allocations: 13.33 MB / 415.6 MB, free: 19.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007775/0.2273, allocations: 4.729 MB / 420.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002562/0.2299, allocations: 83.69 kB / 420.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002581/0.2325, allocations: 0.8194 MB / 421.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003298/0.2358, allocations: 1.03 MB / 422.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001909/0.2378, allocations: 0.6236 MB / 422.8 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004628/0.2424, allocations: 3.495 MB / 426.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003183/0.2456, allocations: 2.312 MB / 428.6 MB, free: 6.031 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.2474, allocations: 1.206 MB / 429.8 MB, free: 4.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002306/0.2498, allocations: 1.572 MB / 431.4 MB, free: 3.242 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007423/0.2505, allocations: 192 kB / 431.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001626/0.2522, allocations: 391.8 kB / 432 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009479/0.2531, allocations: 0.7863 MB / 432.8 MB, free: 1.883 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.2543, allocations: 0.703 MB / 433.5 MB, free: 1.172 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005411/0.2597, allocations: 5.084 MB / 438.6 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.2597, allocations: 0 / 438.6 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.2597, allocations: 0 / 438.6 MB, free: 12.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002283/0.26, allocations: 0 / 438.6 MB, free: 12.07 MB / 314.7 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.008952/0.2689, allocations: 3.618 MB / 442.2 MB, free: 8.383 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.269, allocations: 12.03 kB / 442.2 MB, free: 8.371 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002869/0.2719, allocations: 0.6202 MB / 442.8 MB, free: 7.746 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003616/0.2755, allocations: 2.144 MB / 445 MB, free: 5.547 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.2757, allocations: 250.2 kB / 445.2 MB, free: 5.301 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004211/0.2761, allocations: 304 kB / 445.5 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006849/0.283, allocations: 4.019 MB / 449.5 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.757e-05/0.2831, allocations: 15.83 kB / 449.5 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002806/0.2834, allocations: 132 kB / 449.7 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001353/0.2835, allocations: 146.2 kB / 449.8 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005603/0.2891, allocations: 3.366 MB / 453.2 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0182/0.3073, allocations: 13.33 MB / 466.5 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003837/0.3112, allocations: 3.956 MB / 470.5 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/0.3128, allocations: 1.019 MB / 471.5 MB, free: 9.996 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004136/0.317, allocations: 2.658 MB / 474.1 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.317, allocations: 51.56 kB / 474.2 MB, free: 7.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=108): time 2.675e-06/0.317, allocations: 0 / 474.2 MB, free: 7.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=142): time 0.01089/0.3279, allocations: 5.98 MB / 480.2 MB, free: 1.113 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.328, allocations: 68.72 kB / 480.2 MB, free: 1.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002631/0.3306, allocations: 1.885 MB / 482.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.3307, allocations: 49.69 kB / 482.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009967/0.3317, allocations: 1.497 MB / 483.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000374/0.3321, allocations: 492.9 kB / 484.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.207e-05/0.3322, allocations: 35.94 kB / 484.2 MB, free: 13.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3324, allocations: 377.9 kB / 484.5 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.3336, allocations: 0.7652 MB / 485.3 MB, free: 11.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.335, allocations: 1.371 MB / 486.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.3365, allocations: 1.006 MB / 487.7 MB, free: 9.223 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.3365, allocations: 8 kB / 487.7 MB, free: 9.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003663/0.3401, allocations: 2.462 MB / 490.2 MB, free: 6.734 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.3402, allocations: 12 kB / 490.2 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.3402, allocations: 20 kB / 490.2 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003774/0.3406, allocations: 122.8 kB / 490.3 MB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.3423, allocations: 483.2 kB / 490.8 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.3433, allocations: 1.311 MB / 492.1 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/0.3448, allocations: 111.8 kB / 492.2 MB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.345, allocations: 83.98 kB / 492.3 MB, free: 4.465 MB / 362.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002019/0.347, allocations: 0.9891 MB / 493.3 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005514/0.3475, allocations: 205.5 kB / 493.5 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003688/0.3512, allocations: 1.958 MB / 495.4 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.3513, allocations: 19.95 kB / 495.5 MB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.3513, allocations: 4 kB / 495.5 MB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.3513, allocations: 3.984 kB / 495.5 MB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009801/0.3611, allocations: 4.985 MB / 0.4887 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.3612, allocations: 8.031 kB / 0.4887 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.3625, allocations: 307.6 kB / 0.489 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003287/0.3629, allocations: 98.45 kB / 0.4891 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.363, allocations: 35.98 kB / 0.4891 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00103/0.364, allocations: 1.268 MB / 0.4904 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3641, allocations: 4.156 kB / 0.4904 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004956/0.369, allocations: 3.073 MB / 0.4934 GB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001262/0.3703, allocations: 466.4 kB / 0.4938 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005712/0.3709, allocations: 31.94 kB / 0.4939 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/0.3722, allocations: 83.95 kB / 0.4939 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.3724, allocations: 89.16 kB / 0.494 GB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.293e-05/0.3725, allocations: 39.98 kB / 0.4941 GB, free: 6.469 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002816/0.3753, allocations: 1.27 MB / 0.4953 GB, free: 5.176 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3753, allocations: 0 / 0.4953 GB, free: 5.176 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002209/0.3775, allocations: 0.5273 MB / 0.4958 GB, free: 4.648 MB / 378.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003821/0.3779, allocations: 178 kB / 0.496 GB, free: 4.465 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003597/0.3815, allocations: 2.201 MB / 0.4981 GB, free: 2.211 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.3816, allocations: 4.062 kB / 0.4981 GB, free: 2.207 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.3833, allocations: 1.173 MB / 0.4993 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003251/0.3866, allocations: 0.4899 MB / 0.4998 GB, free: 500 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2086/0.5951, allocations: 6.776 MB / 0.5064 GB, free: 92.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001632/0.5968, allocations: 2.223 MB / 0.5086 GB, free: 91.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000728/0.5976, allocations: 167.8 kB / 0.5087 GB, free: 91.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5976, allocations: 0.5938 kB / 0.5087 GB, free: 91.8 MB / 378.7 MB Notification: Performance of Templates: time 0.07131/0.6689, allocations: 85.46 MB / 0.5922 GB, free: 11.16 MB / 378.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../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