Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00149/0.00149, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001964/0.001965, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 55.94 kB / 307 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09497/0.09615, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2167/0.3129, allocations: 40.07 MB / 397.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0291/0.3421, allocations: 10.65 MB / 408.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01208/0.3542, allocations: 307.3 kB / 408.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02103/0.3753, allocations: 8.521 MB / 417 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01626/0.3916, allocations: 3.414 MB / 420.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009666/0.4012, allocations: 2.359 MB / 422.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0235/0.4248, allocations: 12.87 MB / 435.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04999/0.4748, allocations: 25.39 MB / 461.1 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01137/0.4862, allocations: 6.783 MB / 467.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0125/0.4987, allocations: 7.841 MB / 475.7 MB, free: 5.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005944/0.5047, allocations: 1.949 MB / 477.6 MB, free: 3.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007801/0.5125, allocations: 2.382 MB / 480 MB, free: 1.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005224/0.5178, allocations: 3.959 MB / 484 MB, free: 13.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01159/0.5294, allocations: 7.564 MB / 491.6 MB, free: 5.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02685/0.5563, allocations: 25.73 MB / 0.5052 GB, free: 11.77 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.5563, allocations: 0 / 0.5052 GB, free: 11.77 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5563, allocations: 0 / 0.5052 GB, free: 11.77 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006615/0.557, allocations: 4 kB / 0.5052 GB, free: 11.76 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04031/0.5973, allocations: 15.07 MB / 0.5199 GB, free: 12.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.5974, allocations: 11.97 kB / 0.5199 GB, free: 12.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03445/0.6318, allocations: 6.123 MB / 0.5259 GB, free: 6.414 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3551/0.987, allocations: 7.825 MB / 0.5335 GB, free: 86.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001022/0.9881, allocations: 0.9147 MB / 0.5344 GB, free: 86.33 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004634/0.9927, allocations: 1.191 MB / 0.5356 GB, free: 86.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04512/1.038, allocations: 18.66 MB / 0.5538 GB, free: 83.99 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002997/1.038, allocations: 21.61 kB / 0.5538 GB, free: 83.99 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001631/1.04, allocations: 0.4907 MB / 0.5543 GB, free: 83.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004118/1.04, allocations: 0.6433 MB / 0.5549 GB, free: 83.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02939/1.07, allocations: 16.75 MB / 0.5713 GB, free: 72.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08152/1.151, allocations: 59.54 MB / 0.6294 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02433/1.176, allocations: 33.22 MB / 0.6619 GB, free: 7.852 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006792/1.182, allocations: 3.77 MB / 0.6656 GB, free: 4.082 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0173/1.2, allocations: 8.877 MB / 0.6742 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.828e-05/1.2, allocations: 69.31 kB / 0.6743 GB, free: 11.15 MB / 494.1 MB Notification: Performance of pre-optimization done (n=349): time 5.891e-06/1.2, allocations: 0 / 0.6743 GB, free: 11.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=389): time 0.03993/1.24, allocations: 17.55 MB / 0.6914 GB, free: 9.496 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/1.24, allocations: 94.47 kB / 0.6915 GB, free: 9.391 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/1.251, allocations: 5.041 MB / 0.6965 GB, free: 4.355 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009111/1.252, allocations: 85.7 kB / 0.6965 GB, free: 4.266 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004105/1.256, allocations: 5.45 MB / 0.7019 GB, free: 14.78 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.258, allocations: 1.352 MB / 0.7032 GB, free: 13.44 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003185/1.261, allocations: 1.318 MB / 0.7045 GB, free: 12.11 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.757e-05/1.261, allocations: 307.1 kB / 0.7048 GB, free: 11.81 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005248/1.266, allocations: 2.906 MB / 0.7076 GB, free: 8.898 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00757/1.274, allocations: 5.879 MB / 0.7133 GB, free: 1.668 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01417/1.288, allocations: 9.436 MB / 0.7226 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001687/1.288, allocations: 35.47 kB / 0.7226 GB, free: 7.176 MB / 0.5294 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2035/1.492, allocations: 9.838 MB / 0.7322 GB, free: 198.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/1.492, allocations: 47.62 kB / 0.7322 GB, free: 198.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/1.492, allocations: 100.8 kB / 0.7323 GB, free: 198.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003021/1.495, allocations: 0.9455 MB / 0.7333 GB, free: 198.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006217/1.501, allocations: 1.59 MB / 0.7348 GB, free: 198.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01223/1.514, allocations: 10.19 MB / 0.7448 GB, free: 193 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005782/1.519, allocations: 405.1 kB / 0.7451 GB, free: 192.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/1.521, allocations: 350.7 kB / 0.7455 GB, free: 192.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007282/1.528, allocations: 4.25 MB / 0.7496 GB, free: 191 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/1.529, allocations: 0.5164 MB / 0.7501 GB, free: 191 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/1.539, allocations: 6.495 MB / 0.7565 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/1.539, allocations: 39.31 kB / 0.7565 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/1.539, allocations: 7.875 kB / 0.7565 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.318e-05/1.539, allocations: 18.98 kB / 0.7565 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02671/1.566, allocations: 15.73 MB / 0.7719 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/1.566, allocations: 2.844 kB / 0.7719 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003597/1.57, allocations: 0.7449 MB / 0.7726 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002187/1.572, allocations: 0.8018 MB / 0.7734 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003851/1.572, allocations: 81.95 kB / 0.7735 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009404/1.582, allocations: 9.352 MB / 0.7826 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/1.582, allocations: 11.52 kB / 0.7826 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01832/1.6, allocations: 9.502 MB / 0.7919 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002805/1.603, allocations: 1.05 MB / 0.7929 GB, free: 171 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/1.604, allocations: 72.31 kB / 0.793 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002857/1.607, allocations: 222.5 kB / 0.7932 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007626/1.608, allocations: 269.1 kB / 0.7935 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003326/1.608, allocations: 111.1 kB / 0.7936 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006655/1.615, allocations: 3.362 MB / 0.7969 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.8e-07/1.615, allocations: 4 kB / 0.7969 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0111/1.626, allocations: 1.886 MB / 0.7987 GB, free: 165.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.001288/1.627, allocations: 268 kB / 0.799 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02825/1.656, allocations: 13.12 MB / 0.8118 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.656, allocations: 0 / 0.8118 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004973/1.661, allocations: 3.558 MB / 0.8152 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007461/1.668, allocations: 1.293 MB / 0.8165 GB, free: 148 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03973/1.708, allocations: 19.94 MB / 0.836 GB, free: 128 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01342/1.722, allocations: 7.336 MB / 0.8431 GB, free: 120.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007449/1.729, allocations: 2.153 MB / 0.8453 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001927/1.731, allocations: 407.3 kB / 0.8456 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.402e-06/1.731, allocations: 0 / 0.8456 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.1294/1.86, allocations: 76.42 MB / 0.9203 GB, free: 42.23 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches