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.001036/0.001036, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.0009961/0.0009961, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.263/1.263, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009344/0.0009344, allocations: 43.75 kB / 300.2 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07933/0.08028, allocations: 49.45 MB / 349.6 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1701/0.2504, allocations: 38.71 MB / 388.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02047/0.2709, allocations: 10.25 MB / 398.6 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007336/0.2783, allocations: 291.2 kB / 398.9 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01796/0.2963, allocations: 7.996 MB / 406.8 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01062/0.3069, allocations: 3.063 MB / 409.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005895/0.3128, allocations: 2.136 MB / 412 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01423/0.327, allocations: 12.88 MB / 424.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03339/0.3605, allocations: 28.64 MB / 453.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00798/0.3685, allocations: 6.786 MB / 460.4 MB, free: 7.293 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009482/0.378, allocations: 7.782 MB / 468.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002856/0.3808, allocations: 1.953 MB / 470.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004253/0.3851, allocations: 2.347 MB / 472.4 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003439/0.3886, allocations: 3.959 MB / 476.4 MB, free: 7.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01126/0.3998, allocations: 7.548 MB / 483.9 MB, free: 15.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02712/0.427, allocations: 25.7 MB / 0.4977 GB, free: 5.867 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.427, allocations: 0 / 0.4977 GB, free: 5.867 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4271, allocations: 0 / 0.4977 GB, free: 5.867 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006717/0.4277, allocations: 0 / 0.4977 GB, free: 5.867 MB / 414.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.03979/0.4675, allocations: 15.03 MB / 0.5124 GB, free: 6.723 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.4676, allocations: 12.03 kB / 0.5124 GB, free: 6.711 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0331/0.5007, allocations: 6.127 MB / 0.5184 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2934/0.7942, allocations: 7.779 MB / 0.526 GB, free: 116 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008077/0.795, allocations: 0.9123 MB / 0.5269 GB, free: 115.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003891/0.7989, allocations: 1.199 MB / 0.528 GB, free: 115.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03954/0.8385, allocations: 18.66 MB / 0.5462 GB, free: 107.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002908/0.8388, allocations: 23.69 kB / 0.5463 GB, free: 107.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001547/0.8404, allocations: 0.4944 MB / 0.5468 GB, free: 107.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005227/0.8409, allocations: 0.6451 MB / 0.5474 GB, free: 107.1 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0277/0.8686, allocations: 16.76 MB / 0.5637 GB, free: 93.59 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07399/0.9426, allocations: 58.85 MB / 0.6212 GB, free: 33.77 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0178/0.9605, allocations: 32.88 MB / 0.6533 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005271/0.9658, allocations: 3.73 MB / 0.657 GB, free: 9.262 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01416/0.9799, allocations: 8.664 MB / 0.6654 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/0.98, allocations: 69.31 kB / 0.6655 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.019e-06/0.98, allocations: 4 kB / 0.6655 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03382/1.014, allocations: 17.55 MB / 0.6826 GB, free: 14.81 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/1.014, allocations: 90.47 kB / 0.6827 GB, free: 14.71 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007638/1.022, allocations: 5.016 MB / 0.6876 GB, free: 9.691 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000378/1.022, allocations: 89.7 kB / 0.6877 GB, free: 9.598 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003338/1.025, allocations: 5.447 MB / 0.693 GB, free: 4.117 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001185/1.027, allocations: 1.35 MB / 0.6944 GB, free: 2.777 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002106/1.029, allocations: 1.318 MB / 0.6956 GB, free: 1.449 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.254e-05/1.029, allocations: 305.1 kB / 0.6959 GB, free: 1.148 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1956/1.224, allocations: 2.904 MB / 0.6988 GB, free: 149.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005739/1.23, allocations: 5.874 MB / 0.7045 GB, free: 145.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/1.24, allocations: 9.443 MB / 0.7137 GB, free: 138.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001132/1.24, allocations: 28.62 kB / 0.7138 GB, free: 138.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01578/1.256, allocations: 9.848 MB / 0.7234 GB, free: 134.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.847e-05/1.256, allocations: 51.44 kB / 0.7234 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001752/1.256, allocations: 98.66 kB / 0.7235 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002203/1.259, allocations: 0.9419 MB / 0.7244 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004762/1.263, allocations: 1.584 MB / 0.726 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009523/1.273, allocations: 10.19 MB / 0.7359 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005715/1.279, allocations: 411.3 kB / 0.7363 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001113/1.28, allocations: 354.1 kB / 0.7367 GB, free: 127 MB / 478.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 (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.007099/1.287, allocations: 4.244 MB / 0.7408 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001376/1.288, allocations: 0.5093 MB / 0.7413 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009655/1.298, allocations: 6.484 MB / 0.7476 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/1.298, allocations: 37.84 kB / 0.7477 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/1.298, allocations: 12.84 kB / 0.7477 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.428e-05/1.298, allocations: 19.92 kB / 0.7477 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02116/1.319, allocations: 15.71 MB / 0.7631 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/1.319, allocations: 6.016 kB / 0.7631 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003011/1.322, allocations: 0.7409 MB / 0.7638 GB, free: 111.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002042/1.324, allocations: 0.8021 MB / 0.7646 GB, free: 110.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002715/1.325, allocations: 89.89 kB / 0.7646 GB, free: 110.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008357/1.333, allocations: 9.361 MB / 0.7738 GB, free: 100.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/1.333, allocations: 4 kB / 0.7738 GB, free: 100.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/1.345, allocations: 9.48 MB / 0.7831 GB, free: 91.52 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/1.347, allocations: 1.06 MB / 0.7841 GB, free: 90.53 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006534/1.348, allocations: 75.98 kB / 0.7842 GB, free: 90.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002225/1.35, allocations: 219.8 kB / 0.7844 GB, free: 90.24 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005245/1.35, allocations: 267.7 kB / 0.7846 GB, free: 89.98 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/1.351, allocations: 112 kB / 0.7847 GB, free: 89.87 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004057/1.355, allocations: 3.35 MB / 0.788 GB, free: 86.53 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.355, allocations: 0 / 0.788 GB, free: 86.53 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005303/1.36, allocations: 1.882 MB / 0.7898 GB, free: 84.65 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 (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.0004752/1.36, allocations: 254.4 kB / 0.7901 GB, free: 84.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02572/1.386, allocations: 13.12 MB / 0.8029 GB, free: 71.26 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/1.386, allocations: 8.188 kB / 0.8029 GB, free: 71.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00425/1.39, allocations: 3.549 MB / 0.8064 GB, free: 67.62 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006078/1.397, allocations: 1.289 MB / 0.8076 GB, free: 66.38 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03644/1.433, allocations: 24.93 MB / 0.832 GB, free: 41.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007213/1.44, allocations: 7.32 MB / 0.8391 GB, free: 34.04 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005789/1.446, allocations: 2.152 MB / 0.8412 GB, free: 31.88 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/1.447, allocations: 403.4 kB / 0.8416 GB, free: 31.49 MB / 478.1 MB Notification: Performance of SimCode: time 2.164e-06/1.447, allocations: 0 / 0.8416 GB, free: 31.49 MB / 478.1 MB Notification: Performance of Templates: time 0.3748/1.822, allocations: 76.06 MB / 0.9159 GB, free: 120.6 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