Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 92.19 kB / 16.31 MB, free: 5.945 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.001366/0.001366, allocations: 178.8 kB / 17.2 MB, free: 5.859 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.334/1.334, allocations: 223.3 MB / 241.2 MB, free: 5.406 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002306, allocations: 6.875 kB / 300.8 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08974/0.08999, allocations: 50.43 MB / 351.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03433/0.1244, allocations: 34.46 MB / 385.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01909/0.1435, allocations: 9.656 MB / 395.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006037/0.1496, allocations: 275.1 kB / 395.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005379/0.155, allocations: 1.65 MB / 397.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008843/0.1638, allocations: 2.804 MB / 400.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004929/0.1688, allocations: 1.507 MB / 401.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01643/0.1852, allocations: 13.73 MB / 415.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2048/0.39, allocations: 19.91 MB / 435.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007122/0.3972, allocations: 4.802 MB / 440.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00967/0.4069, allocations: 5.652 MB / 445.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002927/0.4099, allocations: 0.7606 MB / 446.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004848/0.4147, allocations: 1.125 MB / 447.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003045/0.4178, allocations: 2.451 MB / 450 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003907/0.4217, allocations: 2.515 MB / 452.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01793/0.4397, allocations: 21.7 MB / 474.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4397, allocations: 2.188 kB / 474.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4397, allocations: 0 / 474.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006347/0.4403, allocations: 0 / 474.3 MB, free: 10.52 MB / 366.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.03061/0.471, allocations: 12.53 MB / 486.8 MB, free: 2.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.471, allocations: 8.031 kB / 486.8 MB, free: 2.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03232/0.5033, allocations: 6.155 MB / 493 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01437/0.5177, allocations: 7.686 MB / 0.4889 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007167/0.5185, allocations: 0.9089 MB / 0.4898 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003592/0.5221, allocations: 1.204 MB / 0.491 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04233/0.5644, allocations: 18.57 MB / 0.5091 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003857/0.5649, allocations: 22.39 kB / 0.5091 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002528/0.5674, allocations: 0.4934 MB / 0.5096 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006236/0.568, allocations: 0.6382 MB / 0.5102 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03619/0.6042, allocations: 16.66 MB / 0.5265 GB, free: 9.426 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2957/0.8999, allocations: 59.02 MB / 0.5841 GB, free: 120.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02081/0.9208, allocations: 32.83 MB / 0.6162 GB, free: 92.14 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006482/0.9273, allocations: 3.73 MB / 0.6198 GB, free: 92.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01384/0.9411, allocations: 8.682 MB / 0.6283 GB, free: 91.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.9412, allocations: 70.97 kB / 0.6284 GB, free: 91.31 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 4.809e-06/0.9412, allocations: 0 / 0.6284 GB, free: 91.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03648/0.9777, allocations: 18.45 MB / 0.6464 GB, free: 86.47 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.9778, allocations: 101.3 kB / 0.6465 GB, free: 86.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007868/0.9857, allocations: 4.978 MB / 0.6514 GB, free: 84.55 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005879/0.9863, allocations: 88.58 kB / 0.6514 GB, free: 84.47 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002548/0.9889, allocations: 5.444 MB / 0.6568 GB, free: 80.37 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001134/0.99, allocations: 1.359 MB / 0.6581 GB, free: 79.33 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004039/0.9904, allocations: 134.7 kB / 0.6582 GB, free: 79.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002547/0.9907, allocations: 0.5707 MB / 0.6588 GB, free: 78.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00376/0.9944, allocations: 2.88 MB / 0.6616 GB, free: 77.71 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005161/0.9996, allocations: 5.853 MB / 0.6673 GB, free: 72.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005285/1.005, allocations: 4.197 MB / 0.6714 GB, free: 70.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.787e-05/1.005, allocations: 31.19 kB / 0.6714 GB, free: 70.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01394/1.019, allocations: 9.79 MB / 0.681 GB, free: 64.15 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/1.019, allocations: 46.03 kB / 0.681 GB, free: 64.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/1.019, allocations: 100 kB / 0.6811 GB, free: 64.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/1.021, allocations: 0.9481 MB / 0.6821 GB, free: 63.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005078/1.026, allocations: 1.589 MB / 0.6836 GB, free: 61.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009653/1.036, allocations: 9.482 MB / 0.6929 GB, free: 51.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005291/1.041, allocations: 407.2 kB / 0.6933 GB, free: 51.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001123/1.043, allocations: 352 kB / 0.6936 GB, free: 50.84 MB / 462.1 MB 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007031/1.05, allocations: 4.244 MB / 0.6977 GB, free: 46.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/1.051, allocations: 0.5094 MB / 0.6982 GB, free: 46.06 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009642/1.06, allocations: 6.49 MB / 0.7046 GB, free: 39.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-05/1.06, allocations: 40 kB / 0.7046 GB, free: 39.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/1.06, allocations: 8 kB / 0.7046 GB, free: 39.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.101e-05/1.06, allocations: 23.77 kB / 0.7046 GB, free: 39.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02304/1.083, allocations: 15.69 MB / 0.72 GB, free: 23.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/1.084, allocations: 4.375 kB / 0.72 GB, free: 23.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002993/1.087, allocations: 0.7528 MB / 0.7207 GB, free: 22.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/1.088, allocations: 0.7768 MB / 0.7215 GB, free: 22.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003095/1.089, allocations: 87.97 kB / 0.7215 GB, free: 22.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007951/1.097, allocations: 8.656 MB / 0.73 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.097, allocations: 4 kB / 0.73 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01256/1.109, allocations: 9.468 MB / 0.7392 GB, free: 3.457 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002469/1.112, allocations: 1.068 MB / 0.7403 GB, free: 2.363 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001236/1.113, allocations: 75.34 kB / 0.7404 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002726/1.116, allocations: 223.8 kB / 0.7406 GB, free: 2.074 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00049/1.116, allocations: 262.8 kB / 0.7408 GB, free: 1.816 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000277/1.117, allocations: 116 kB / 0.7409 GB, free: 1.703 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006369/1.123, allocations: 3.303 MB / 0.7442 GB, free: 14.41 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.123, allocations: 0 / 0.7442 GB, free: 14.41 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007742/1.131, allocations: 1.884 MB / 0.746 GB, free: 12.54 MB / 478.1 MB 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000723/1.131, allocations: 270 kB / 0.7463 GB, free: 12.27 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01386/1.145, allocations: 7.609 MB / 0.7537 GB, free: 4.582 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.145, allocations: 3.938 kB / 0.7537 GB, free: 4.578 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006166/1.152, allocations: 3.55 MB / 0.7572 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1825/1.334, allocations: 1.229 MB / 0.7584 GB, free: 160.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03121/1.365, allocations: 23.88 MB / 0.7817 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007037/1.372, allocations: 7.328 MB / 0.7888 GB, free: 150.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006092/1.379, allocations: 2.144 MB / 0.7909 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/1.38, allocations: 406.9 kB / 0.7913 GB, free: 149.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/1.38, allocations: 0 / 0.7913 GB, free: 149.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1144/1.494, allocations: 70.89 MB / 0.8605 GB, free: 89.4 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches