Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_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.001371/0.001372, allocations: 104.1 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.00158/0.00158, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.406/1.406, allocations: 227.7 MB / 247 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 67.58 kB / 307.3 MB, free: 456 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09208/0.094, allocations: 50.54 MB / 357.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1995/0.2935, allocations: 40.07 MB / 397.9 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02499/0.3186, allocations: 10.65 MB / 408.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009521/0.3281, allocations: 307.4 kB / 408.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02061/0.3488, allocations: 8.521 MB / 417.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01461/0.3634, allocations: 3.409 MB / 420.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008342/0.3718, allocations: 2.365 MB / 423.1 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02277/0.3946, allocations: 12.87 MB / 436 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04534/0.44, allocations: 25.39 MB / 461.4 MB, free: 3.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01263/0.4526, allocations: 6.787 MB / 468.2 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01387/0.4665, allocations: 7.841 MB / 476 MB, free: 5.188 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006817/0.4734, allocations: 1.949 MB / 478 MB, free: 3.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008411/0.4818, allocations: 2.382 MB / 480.3 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007093/0.489, allocations: 3.955 MB / 484.3 MB, free: 12.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01507/0.5041, allocations: 7.568 MB / 491.9 MB, free: 5.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03293/0.5371, allocations: 25.74 MB / 0.5055 GB, free: 11.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.5371, allocations: 4 kB / 0.5055 GB, free: 11.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5371, allocations: 0 / 0.5055 GB, free: 11.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006859/0.5378, allocations: 0 / 0.5055 GB, free: 11.48 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.045/0.5828, allocations: 15.07 MB / 0.5202 GB, free: 12.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.5829, allocations: 8.031 kB / 0.5202 GB, free: 12.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03442/0.6173, allocations: 6.034 MB / 0.5261 GB, free: 6.227 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3266/0.944, allocations: 7.837 MB / 0.5337 GB, free: 126.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009762/0.945, allocations: 0.9089 MB / 0.5346 GB, free: 126.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004427/0.9494, allocations: 1.2 MB / 0.5358 GB, free: 126.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04561/0.9951, allocations: 18.69 MB / 0.5541 GB, free: 119.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003609/0.9955, allocations: 27.5 kB / 0.5541 GB, free: 119.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0026/0.9981, allocations: 0.4905 MB / 0.5546 GB, free: 118.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004176/0.9985, allocations: 0.637 MB / 0.5552 GB, free: 118.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03544/1.034, allocations: 16.79 MB / 0.5716 GB, free: 108.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09759/1.132, allocations: 59.57 MB / 0.6298 GB, free: 48.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01899/1.151, allocations: 33.24 MB / 0.6622 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00518/1.156, allocations: 3.769 MB / 0.6659 GB, free: 7.441 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0137/1.17, allocations: 8.905 MB / 0.6746 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.185e-05/1.17, allocations: 73.25 kB / 0.6747 GB, free: 14.42 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 6.111e-06/1.17, allocations: 0 / 0.6747 GB, free: 14.42 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.04486/1.215, allocations: 17.6 MB / 0.6918 GB, free: 12.67 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.867e-05/1.215, allocations: 90.47 kB / 0.6919 GB, free: 12.57 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/1.225, allocations: 5.033 MB / 0.6968 GB, free: 7.539 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007027/1.226, allocations: 93.7 kB / 0.6969 GB, free: 7.441 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004316/1.23, allocations: 5.448 MB / 0.7023 GB, free: 1.961 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002027/1.232, allocations: 1.35 MB / 0.7036 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002471/1.234, allocations: 1.326 MB / 0.7049 GB, free: 15.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/1.235, allocations: 313.1 kB / 0.7052 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004791/1.239, allocations: 2.91 MB / 0.708 GB, free: 12.06 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007573/1.247, allocations: 5.88 MB / 0.7138 GB, free: 4.781 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2098/1.457, allocations: 9.451 MB / 0.723 GB, free: 151.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.934e-05/1.457, allocations: 28.5 kB / 0.723 GB, free: 151.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01611/1.473, allocations: 9.87 MB / 0.7327 GB, free: 147.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.965e-05/1.473, allocations: 51.98 kB / 0.7327 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/1.473, allocations: 99.88 kB / 0.7328 GB, free: 147.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002425/1.476, allocations: 0.9396 MB / 0.7337 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005263/1.481, allocations: 1.588 MB / 0.7353 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009979/1.491, allocations: 10.2 MB / 0.7452 GB, free: 140.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004728/1.496, allocations: 405.7 kB / 0.7456 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007342/1.496, allocations: 357.3 kB / 0.7459 GB, free: 140.3 MB / 494.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.006147/1.502, allocations: 4.252 MB / 0.7501 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.504, allocations: 0.5093 MB / 0.7506 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009073/1.513, allocations: 6.484 MB / 0.7569 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/1.513, allocations: 39.66 kB / 0.757 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/1.513, allocations: 11.88 kB / 0.757 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-05/1.513, allocations: 26.66 kB / 0.757 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02166/1.535, allocations: 15.77 MB / 0.7724 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/1.535, allocations: 3.812 kB / 0.7724 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002961/1.538, allocations: 0.7498 MB / 0.7731 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002131/1.54, allocations: 0.797 MB / 0.7739 GB, free: 129 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004401/1.54, allocations: 93.7 kB / 0.774 GB, free: 129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008117/1.548, allocations: 9.351 MB / 0.7831 GB, free: 120.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.548, allocations: 7.938 kB / 0.7831 GB, free: 120.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01141/1.56, allocations: 9.514 MB / 0.7924 GB, free: 111.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/1.562, allocations: 1.059 MB / 0.7935 GB, free: 110.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006451/1.562, allocations: 76 kB / 0.7935 GB, free: 110.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/1.565, allocations: 219.8 kB / 0.7938 GB, free: 110.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004754/1.565, allocations: 266.7 kB / 0.794 GB, free: 109.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002129/1.565, allocations: 120 kB / 0.7941 GB, free: 109.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003925/1.569, allocations: 3.359 MB / 0.7974 GB, free: 106.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.569, allocations: 0 / 0.7974 GB, free: 106.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006255/1.576, allocations: 1.891 MB / 0.7992 GB, free: 104.6 MB / 494.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.0006523/1.576, allocations: 265.5 kB / 0.7995 GB, free: 104.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0256/1.602, allocations: 13.13 MB / 0.8123 GB, free: 91.17 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/1.602, allocations: 0 / 0.8123 GB, free: 91.17 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005181/1.607, allocations: 3.566 MB / 0.8158 GB, free: 87.53 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007363/1.614, allocations: 1.307 MB / 0.8171 GB, free: 86.28 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03674/1.651, allocations: 19.87 MB / 0.8365 GB, free: 66.35 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008548/1.66, allocations: 7.325 MB / 0.8436 GB, free: 58.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00562/1.665, allocations: 2.149 MB / 0.8457 GB, free: 56.83 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/1.666, allocations: 423.3 kB / 0.8461 GB, free: 56.42 MB / 494.1 MB Notification: Performance of SimCode: time 1.503e-06/1.667, allocations: 0 / 0.8461 GB, free: 56.42 MB / 494.1 MB Notification: Performance of Templates: time 0.3111/1.978, allocations: 75.59 MB / 0.92 GB, free: 126 MB / 494.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches