Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 97.86 kB / 16.95 MB, free: 6.453 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.001354/0.001354, allocations: 182.9 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005801/0.0005806, allocations: 8 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1203, allocations: 47.58 MB / 328.4 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01517/0.1355, allocations: 13.28 MB / 341.6 MB, free: 6.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01066/0.1462, allocations: 4.749 MB / 346.4 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003348/0.1496, allocations: 79.69 kB / 346.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003157/0.1528, allocations: 0.8117 MB / 347.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004273/0.1571, allocations: 1.026 MB / 348.3 MB, free: 68 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002369/0.1594, allocations: 0.6315 MB / 348.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006231/0.1657, allocations: 3.51 MB / 352.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003993/0.1697, allocations: 2.275 MB / 354.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002407/0.1721, allocations: 1.202 MB / 355.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003473/0.1756, allocations: 1.58 MB / 357.5 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001343/0.177, allocations: 192 kB / 357.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00249/0.1795, allocations: 399.7 kB / 358.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001795/0.1813, allocations: 0.7825 MB / 358.9 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002538/0.1838, allocations: 0.6991 MB / 359.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008352/0.1922, allocations: 5.06 MB / 364.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.938e-06/0.1923, allocations: 0 / 364.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.616e-06/0.1923, allocations: 3.938 kB / 364.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003164/0.1926, allocations: 0 / 364.6 MB, free: 15.65 MB / 318.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.01264/0.2053, allocations: 3.611 MB / 368.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.2053, allocations: 11.97 kB / 368.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003854/0.2092, allocations: 0.6281 MB / 368.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006786/0.216, allocations: 2.027 MB / 370.9 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004153/0.2165, allocations: 242.3 kB / 371.1 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001347/0.2179, allocations: 311.9 kB / 371.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01312/0.231, allocations: 4.019 MB / 375.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.2312, allocations: 11.91 kB / 375.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008991/0.2321, allocations: 128 kB / 375.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002274/0.2324, allocations: 146.2 kB / 375.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.2425, allocations: 3.358 MB / 379.1 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.298/0.5406, allocations: 13.37 MB / 392.5 MB, free: 42.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004723/0.5454, allocations: 3.959 MB / 396.4 MB, free: 38.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002132/0.5476, allocations: 1.019 MB / 397.4 MB, free: 37.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006245/0.5539, allocations: 2.658 MB / 400.1 MB, free: 36.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.215e-05/0.554, allocations: 47.98 kB / 400.1 MB, free: 35.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 6.041e-06/0.554, allocations: 0 / 400.1 MB, free: 35.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01603/0.57, allocations: 5.988 MB / 406.1 MB, free: 32.51 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.34e-05/0.5702, allocations: 66.19 kB / 406.2 MB, free: 32.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005064/0.5752, allocations: 1.878 MB / 408.1 MB, free: 31.4 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000188/0.5754, allocations: 49.67 kB / 408.1 MB, free: 31.35 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.5765, allocations: 1.508 MB / 409.6 MB, free: 30.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003545/0.5768, allocations: 490.7 kB / 410.1 MB, free: 29.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-05/0.5769, allocations: 39.53 kB / 410.2 MB, free: 29.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5771, allocations: 380.5 kB / 410.5 MB, free: 29.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.5783, allocations: 0.7621 MB / 411.3 MB, free: 28.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.5799, allocations: 1.37 MB / 412.7 MB, free: 27.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.5814, allocations: 1.014 MB / 413.7 MB, free: 26.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/0.5814, allocations: 4 kB / 413.7 MB, free: 26.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004235/0.5856, allocations: 2.458 MB / 416.1 MB, free: 24.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.784e-05/0.5857, allocations: 12 kB / 416.1 MB, free: 24.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.19e-05/0.5857, allocations: 24.06 kB / 416.2 MB, free: 24.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003941/0.5861, allocations: 122.5 kB / 416.3 MB, free: 24.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.5877, allocations: 495.2 kB / 416.8 MB, free: 23.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.5888, allocations: 1.303 MB / 418.1 MB, free: 22.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/0.5908, allocations: 119.9 kB / 418.2 MB, free: 22.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.591, allocations: 83.98 kB / 418.3 MB, free: 22.06 MB / 318.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 (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.002818/0.5939, allocations: 0.9812 MB / 419.3 MB, free: 21.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008734/0.5947, allocations: 201.5 kB / 419.5 MB, free: 20.87 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003736/0.5985, allocations: 1.966 MB / 421.4 MB, free: 18.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.5985, allocations: 16 kB / 421.4 MB, free: 18.87 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/0.5986, allocations: 0 / 421.4 MB, free: 18.87 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.5986, allocations: 3.984 kB / 421.4 MB, free: 18.86 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.6091, allocations: 4.992 MB / 426.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.6091, allocations: 4 kB / 426.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.6104, allocations: 315.8 kB / 426.7 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002873/0.6107, allocations: 102.5 kB / 426.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001316/0.6109, allocations: 35.95 kB / 426.9 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007634/0.6116, allocations: 1.276 MB / 428.2 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.6117, allocations: 0 / 428.2 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004215/0.6159, allocations: 3.073 MB / 431.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/0.6173, allocations: 466.4 kB / 431.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006795/0.618, allocations: 33.3 kB / 431.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.6192, allocations: 83.84 kB / 431.8 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.6194, allocations: 93.2 kB / 431.9 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.013e-05/0.6195, allocations: 36 kB / 431.9 MB, free: 8.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002548/0.622, allocations: 1.277 MB / 433.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.12e-07/0.622, allocations: 0 / 433.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.003235/0.6253, allocations: 0.5259 MB / 433.7 MB, free: 6.266 MB / 318.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 (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.0005473/0.6258, allocations: 168.3 kB / 433.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003643/0.6295, allocations: 2.197 MB / 436.1 MB, free: 3.848 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.6295, allocations: 9.344 kB / 436.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001591/0.6311, allocations: 1.175 MB / 437.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/0.6342, allocations: 0.49 MB / 437.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01394/0.6482, allocations: 6.723 MB / 444.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003453/0.6517, allocations: 2.271 MB / 446.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00258/0.6543, allocations: 0.5092 MB / 447.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008716/0.6552, allocations: 151.4 kB / 447.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of SimCode: time 2.013e-06/0.6552, allocations: 0 / 447.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of Templates: time 0.06402/0.7192, allocations: 24.16 MB / 471.6 MB, free: 200 kB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches