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.001232/0.001232, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001088/0.001088, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.323/1.323, allocations: 222.9 MB / 241.8 MB, free: 13.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 53.45 kB / 300.6 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1188, allocations: 49.44 MB / 350.1 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2156/0.3344, allocations: 38.72 MB / 388.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02298/0.3574, allocations: 10.29 MB / 399.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01106/0.3685, allocations: 292.7 kB / 399.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01983/0.3884, allocations: 7.985 MB / 407.4 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01459/0.403, allocations: 3.097 MB / 410.5 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007952/0.411, allocations: 2.165 MB / 412.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01692/0.4279, allocations: 12.92 MB / 425.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0366/0.4646, allocations: 20.56 MB / 446.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01137/0.476, allocations: 5.872 MB / 452 MB, free: 320 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01243/0.4885, allocations: 7.365 MB / 459.3 MB, free: 8.918 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005033/0.4936, allocations: 1.301 MB / 460.6 MB, free: 7.617 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007089/0.5007, allocations: 1.691 MB / 462.3 MB, free: 5.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005604/0.5063, allocations: 3.279 MB / 465.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01441/0.5208, allocations: 6.865 MB / 472.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02289/0.5437, allocations: 22.33 MB / 494.8 MB, free: 5.363 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.5437, allocations: 0 / 494.8 MB, free: 5.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5438, allocations: 0 / 494.8 MB, free: 5.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000729/0.5445, allocations: 0 / 494.8 MB, free: 5.363 MB / 398.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.04546/0.59, allocations: 15.02 MB / 0.4979 GB, free: 6.223 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.59, allocations: 12.03 kB / 0.4979 GB, free: 6.211 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03378/0.6238, allocations: 6.124 MB / 0.5039 GB, free: 68 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01786/0.6417, allocations: 7.797 MB / 0.5115 GB, free: 8.188 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/0.6429, allocations: 0.9071 MB / 0.5124 GB, free: 7.277 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005202/0.6482, allocations: 1.203 MB / 0.5135 GB, free: 6.074 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3952/1.043, allocations: 18.65 MB / 0.5318 GB, free: 110.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005279/1.044, allocations: 22.53 kB / 0.5318 GB, free: 110.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004044/1.048, allocations: 0.4946 MB / 0.5323 GB, free: 110.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007921/1.049, allocations: 0.6376 MB / 0.5329 GB, free: 110.2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0402/1.089, allocations: 16.76 MB / 0.5493 GB, free: 103.2 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0903/1.179, allocations: 58.87 MB / 0.6067 GB, free: 48.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01838/1.198, allocations: 32.87 MB / 0.6388 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005427/1.203, allocations: 3.73 MB / 0.6425 GB, free: 8.117 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/1.218, allocations: 8.662 MB / 0.6509 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.014e-05/1.218, allocations: 69.31 kB / 0.651 GB, free: 15.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.129e-06/1.218, allocations: 0 / 0.651 GB, free: 15.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.0387/1.256, allocations: 17.54 MB / 0.6681 GB, free: 13.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.152e-05/1.256, allocations: 106.3 kB / 0.6682 GB, free: 13.57 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009713/1.266, allocations: 5.02 MB / 0.6731 GB, free: 8.551 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007732/1.267, allocations: 89.7 kB / 0.6732 GB, free: 8.457 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003973/1.271, allocations: 5.439 MB / 0.6785 GB, free: 2.984 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001876/1.273, allocations: 1.354 MB / 0.6799 GB, free: 1.641 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004033/1.277, allocations: 1.322 MB / 0.6812 GB, free: 316 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/1.277, allocations: 301.1 kB / 0.6814 GB, free: 12 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005664/1.283, allocations: 2.91 MB / 0.6843 GB, free: 13.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008816/1.292, allocations: 5.873 MB / 0.69 GB, free: 5.824 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2819/1.574, allocations: 9.442 MB / 0.6992 GB, free: 142.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/1.574, allocations: 32.53 kB / 0.6993 GB, free: 142.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.03219/1.606, allocations: 9.848 MB / 0.7089 GB, free: 138.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002821/1.606, allocations: 47.59 kB / 0.7089 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003147/1.607, allocations: 99.28 kB / 0.709 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005802/1.612, allocations: 0.9328 MB / 0.7099 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01223/1.625, allocations: 1.583 MB / 0.7115 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02085/1.646, allocations: 9.478 MB / 0.7207 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009857/1.656, allocations: 405.5 kB / 0.7211 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002141/1.658, allocations: 353.9 kB / 0.7215 GB, free: 131.5 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.01257/1.67, allocations: 4.247 MB / 0.7256 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002302/1.673, allocations: 0.5117 MB / 0.7261 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02086/1.694, allocations: 6.482 MB / 0.7324 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.453e-05/1.694, allocations: 39.34 kB / 0.7325 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.986e-05/1.694, allocations: 8.844 kB / 0.7325 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001032/1.694, allocations: 19.92 kB / 0.7325 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0489/1.743, allocations: 15.72 MB / 0.7479 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-05/1.743, allocations: 3.938 kB / 0.7479 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006657/1.75, allocations: 0.75 MB / 0.7486 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004146/1.754, allocations: 0.7908 MB / 0.7494 GB, free: 120.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008472/1.755, allocations: 80.72 kB / 0.7494 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01577/1.77, allocations: 8.664 MB / 0.7579 GB, free: 112.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.026e-05/1.77, allocations: 10.08 kB / 0.7579 GB, free: 112.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02585/1.796, allocations: 9.497 MB / 0.7672 GB, free: 103.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004025/1.8, allocations: 1.057 MB / 0.7682 GB, free: 102.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001876/1.802, allocations: 68 kB / 0.7683 GB, free: 102.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005268/1.808, allocations: 223.8 kB / 0.7685 GB, free: 102.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/1.809, allocations: 258.8 kB / 0.7687 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006202/1.809, allocations: 112.1 kB / 0.7689 GB, free: 102.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00936/1.819, allocations: 3.35 MB / 0.7721 GB, free: 98.92 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.132e-06/1.819, allocations: 0 / 0.7721 GB, free: 98.92 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01248/1.831, allocations: 1.887 MB / 0.774 GB, free: 97.04 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.001336/1.833, allocations: 264.2 kB / 0.7742 GB, free: 96.79 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01918/1.852, allocations: 7.645 MB / 0.7817 GB, free: 89.06 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/1.852, allocations: 0 / 0.7817 GB, free: 89.06 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00934/1.861, allocations: 3.555 MB / 0.7852 GB, free: 85.43 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009491/1.871, allocations: 1.22 MB / 0.7863 GB, free: 84.24 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03775/1.909, allocations: 24.65 MB / 0.8104 GB, free: 59.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007164/1.916, allocations: 7.108 MB / 0.8174 GB, free: 52.39 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002064/1.918, allocations: 455.3 kB / 0.8178 GB, free: 51.95 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/1.918, allocations: 0 / 0.8178 GB, free: 51.95 MB / 478.1 MB Notification: Performance of Templates: time 1.007/2.925, allocations: 460.6 MB / 1.268 GB, free: 156.5 MB / 0.4982 GB 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/jenkins1/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/jenkins1/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