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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.294/1.294, allocations: 222.9 MB / 240.9 MB, free: 10.98 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.0009554/0.0009554, allocations: 103 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008489/0.0008491, allocations: 35.95 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.212, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.00841/0.2205, allocations: 10.82 MB / 410.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005766/0.2263, allocations: 3.571 MB / 413.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.2277, allocations: 63.69 kB / 413.9 MB, free: 18.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.2293, allocations: 0.7069 MB / 414.6 MB, free: 18.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001904/0.2312, allocations: 0.781 MB / 415.4 MB, free: 17.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007286/0.232, allocations: 416 kB / 415.8 MB, free: 16.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002154/0.2341, allocations: 3.294 MB / 419.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001865/0.236, allocations: 2.299 MB / 421.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.2372, allocations: 1.214 MB / 422.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00155/0.2387, allocations: 1.689 MB / 424.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003767/0.2391, allocations: 232 kB / 424.6 MB, free: 8.164 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007156/0.2398, allocations: 343.8 kB / 424.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007536/0.2406, allocations: 0.9424 MB / 425.8 MB, free: 6.883 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.2417, allocations: 1.516 MB / 427.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002683/0.2444, allocations: 4.708 MB / 432.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2444, allocations: 0 / 432.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2444, allocations: 0 / 432.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.069e-05/0.2445, allocations: 0 / 432.1 MB, free: 0.6367 MB / 298.7 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.006098/0.2506, allocations: 3.394 MB / 435.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.961e-05/0.2507, allocations: 8.031 kB / 435.5 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007565/0.2515, allocations: 341.1 kB / 435.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003195/0.2547, allocations: 1.768 MB / 437.6 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.2548, allocations: 205.3 kB / 437.8 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003346/0.2552, allocations: 247.9 kB / 438 MB, free: 10.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005089/0.2603, allocations: 3.287 MB / 441.3 MB, free: 7.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.825e-05/0.2604, allocations: 0 / 441.3 MB, free: 7.195 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002136/0.2606, allocations: 104 kB / 441.4 MB, free: 7.094 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/0.2607, allocations: 124.9 kB / 441.5 MB, free: 6.969 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004533/0.2653, allocations: 2.752 MB / 444.3 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01846/0.2838, allocations: 10.48 MB / 454.7 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001844/0.2856, allocations: 1.355 MB / 456.1 MB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/0.2869, allocations: 0.7901 MB / 456.9 MB, free: 7.145 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003021/0.2872, allocations: 203.2 kB / 457.1 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.2873, allocations: 47.56 kB / 457.1 MB, free: 6.852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 3.436e-06/0.2873, allocations: 0 / 457.1 MB, free: 6.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.01466/0.3019, allocations: 6.891 MB / 464 MB, free: 15.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.302, allocations: 64.41 kB / 464.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/0.3045, allocations: 1.789 MB / 465.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.3046, allocations: 45.7 kB / 465.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007842/0.3054, allocations: 1.279 MB / 467.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.3057, allocations: 422 kB / 467.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000448/0.3062, allocations: 299.2 kB / 467.9 MB, free: 11.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.134e-05/0.3063, allocations: 305.1 kB / 468.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.3075, allocations: 0.7769 MB / 469 MB, free: 10.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.3089, allocations: 1.292 MB / 470.3 MB, free: 9.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002636/0.3116, allocations: 2.21 MB / 472.5 MB, free: 6.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.3116, allocations: 8 kB / 472.5 MB, free: 6.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003831/0.3154, allocations: 2.466 MB / 475 MB, free: 4.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.3155, allocations: 15.94 kB / 475 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.119e-05/0.3155, allocations: 16 kB / 475 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000613/0.3161, allocations: 251.5 kB / 475.2 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.3175, allocations: 415.3 kB / 475.6 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002293/0.3198, allocations: 2.997 MB / 478.6 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.3212, allocations: 127.8 kB / 478.8 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.3213, allocations: 71.98 kB / 478.8 MB, free: 228 kB / 346.7 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.001239/0.3226, allocations: 0.8182 MB / 479.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/0.3229, allocations: 185.8 kB / 479.8 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003092/0.326, allocations: 2.046 MB / 481.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.326, allocations: 12 kB / 481.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.326, allocations: 0 / 481.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.326, allocations: 3.984 kB / 481.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007156/0.3332, allocations: 4.763 MB / 486.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.3332, allocations: 4 kB / 486.7 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.3343, allocations: 263.6 kB / 486.9 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005229/0.3348, allocations: 199.6 kB / 487.1 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-05/0.3349, allocations: 27.98 kB / 487.1 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002146/0.3371, allocations: 2.991 MB / 490.1 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3371, allocations: 4 kB / 490.1 MB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01486/0.3519, allocations: 10.68 MB / 0.4891 GB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007692/0.3527, allocations: 426.7 kB / 0.4895 GB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/0.3529, allocations: 27.94 kB / 0.4895 GB, free: 9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008979/0.3538, allocations: 91.88 kB / 0.4896 GB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.354, allocations: 92.92 kB / 0.4897 GB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.559e-05/0.3541, allocations: 35.98 kB / 0.4897 GB, free: 8.785 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001711/0.3558, allocations: 1.216 MB / 0.4909 GB, free: 7.578 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3558, allocations: 0 / 0.4909 GB, free: 7.578 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001829/0.3577, allocations: 0.625 MB / 0.4915 GB, free: 6.953 MB / 378.7 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.0004114/0.3581, allocations: 194.9 kB / 0.4917 GB, free: 6.754 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003477/0.3616, allocations: 2.346 MB / 0.494 GB, free: 4.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3616, allocations: 0 / 0.494 GB, free: 4.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.3634, allocations: 1.343 MB / 0.4953 GB, free: 2.926 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/0.3657, allocations: 476 kB / 0.4958 GB, free: 2.469 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2005/0.5662, allocations: 6.956 MB / 0.5026 GB, free: 94.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002694/0.5689, allocations: 2.047 MB / 0.5046 GB, free: 93.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001883/0.5709, allocations: 0.5055 MB / 0.505 GB, free: 93.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/0.5713, allocations: 148.6 kB / 0.5052 GB, free: 93.54 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5713, allocations: 0 / 0.5052 GB, free: 93.54 MB / 378.7 MB Notification: Performance of Templates: time 0.04158/0.6129, allocations: 27.14 MB / 0.5317 GB, free: 71.77 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../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