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.0007542/0.0007543, allocations: 93.31 kB / 17.31 MB, free: 6.535 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.0008326/0.0008326, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.144/1.144, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002282/0.0002282, allocations: 7.938 kB / 302.1 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07398/0.07423, allocations: 50.42 MB / 352.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01243/0.08668, allocations: 14.28 MB / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007669/0.09438, allocations: 4.976 MB / 371.8 MB, free: 344 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002026/0.09643, allocations: 91.62 kB / 371.9 MB, free: 252 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1425/0.2389, allocations: 0.9174 MB / 372.8 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003441/0.2424, allocations: 1.131 MB / 373.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.2442, allocations: 0.8093 MB / 374.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004165/0.2484, allocations: 3.74 MB / 378.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00314/0.2516, allocations: 2.748 MB / 381.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.2533, allocations: 1.223 MB / 382.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002376/0.2557, allocations: 1.64 MB / 384.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003485/0.256, allocations: 190.9 kB / 384.3 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009317/0.257, allocations: 418.5 kB / 384.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006259/0.2576, allocations: 0.7988 MB / 385.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001266/0.2589, allocations: 1.686 MB / 387.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002908/0.2618, allocations: 5.085 MB / 392.2 MB, free: 4.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.2618, allocations: 4 kB / 392.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2618, allocations: 0 / 392.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.939e-05/0.2618, allocations: 0 / 392.2 MB, free: 4.301 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.005961/0.2678, allocations: 3.587 MB / 395.8 MB, free: 1.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.2678, allocations: 13.2 kB / 395.8 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002269/0.2701, allocations: 0.6185 MB / 396.5 MB, free: 1.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.2726, allocations: 2.199 MB / 398.7 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/0.273, allocations: 266.1 kB / 398.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003574/0.2733, allocations: 307.5 kB / 399.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005414/0.2787, allocations: 4.055 MB / 403.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.838e-05/0.2788, allocations: 7.922 kB / 403.3 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002685/0.2791, allocations: 128 kB / 403.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/0.2792, allocations: 142.2 kB / 403.5 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004782/0.284, allocations: 3.393 MB / 406.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0152/0.2992, allocations: 13.35 MB / 420.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/0.3028, allocations: 3.965 MB / 424.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.3043, allocations: 1.011 MB / 425.3 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003338/0.3076, allocations: 2.664 MB / 427.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.3077, allocations: 47.5 kB / 428 MB, free: 3.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.103e-06/0.3077, allocations: 0 / 428 MB, free: 3.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.009436/0.3171, allocations: 5.996 MB / 434 MB, free: 13.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.3172, allocations: 64.72 kB / 434 MB, free: 13.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002201/0.3194, allocations: 1.897 MB / 435.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.909e-05/0.3195, allocations: 45.7 kB / 436 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008823/0.3203, allocations: 1.5 MB / 437.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000326/0.3207, allocations: 496.9 kB / 438 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.3209, allocations: 145.6 kB / 438.1 MB, free: 9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.114e-05/0.321, allocations: 301.1 kB / 438.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.322, allocations: 0.773 MB / 439.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.3235, allocations: 1.384 MB / 440.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002635/0.3261, allocations: 2.32 MB / 442.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.3261, allocations: 7.938 kB / 442.9 MB, free: 3.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003318/0.3294, allocations: 2.478 MB / 445.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3295, allocations: 16 kB / 445.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.3295, allocations: 16 kB / 445.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002884/0.3298, allocations: 122.5 kB / 445.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.3314, allocations: 487.2 kB / 446 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008605/0.3322, allocations: 1.315 MB / 447.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.3333, allocations: 115.8 kB / 447.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.3334, allocations: 80 kB / 447.5 MB, free: 14.91 MB / 366.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.001235/0.3347, allocations: 0.9852 MB / 448.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002426/0.3349, allocations: 205.4 kB / 448.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002863/0.3378, allocations: 1.95 MB / 450.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/0.3378, allocations: 19.94 kB / 450.6 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3378, allocations: 3.938 kB / 450.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.3378, allocations: 7.969 kB / 450.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006366/0.3442, allocations: 5 MB / 455.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3442, allocations: 0 / 455.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.3454, allocations: 311.8 kB / 456 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.3457, allocations: 102.5 kB / 456.1 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-05/0.3458, allocations: 24 kB / 456.1 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000758/0.3465, allocations: 1.276 MB / 457.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.3465, allocations: 7.938 kB / 457.4 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003851/0.3504, allocations: 3.093 MB / 460.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006209/0.351, allocations: 466.4 kB / 460.9 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002107/0.3512, allocations: 27.94 kB / 460.9 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008575/0.3521, allocations: 87.91 kB / 461 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.3523, allocations: 89.19 kB / 461.1 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.899e-05/0.3523, allocations: 40 kB / 461.2 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001552/0.3539, allocations: 1.285 MB / 462.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3539, allocations: 0 / 462.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001237/0.3552, allocations: 0.5352 MB / 463 MB, free: 15.08 MB / 382.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.0002554/0.3554, allocations: 162.3 kB / 463.1 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.3582, allocations: 2.217 MB / 465.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3582, allocations: 0 / 465.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.3596, allocations: 1.178 MB / 466.5 MB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/0.362, allocations: 492.8 kB / 467 MB, free: 10.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008353/0.3703, allocations: 7.119 MB / 474.1 MB, free: 3.758 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001707/0.3721, allocations: 2.216 MB / 476.3 MB, free: 1.508 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004959/0.3726, allocations: 167.4 kB / 476.5 MB, free: 1.348 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3726, allocations: 3.938 kB / 476.5 MB, free: 1.344 MB / 382.1 MB Notification: Performance of Templates: time 0.1988/0.5714, allocations: 85.35 MB / 0.5487 GB, free: 146.9 MB / 446.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/jenkins1/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/jenkins1/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