Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_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.001013/0.001013, allocations: 98.05 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 203.9 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.7 MB / 247.5 MB, free: 11.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002492/0.0002494, allocations: 4 kB / 308.4 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1015, allocations: 51.53 MB / 359.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2172/0.3188, allocations: 37.78 MB / 397.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02301/0.3418, allocations: 10.45 MB / 408.2 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00865/0.3505, allocations: 285.4 kB / 408.5 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00768/0.3582, allocations: 2.128 MB / 410.6 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01297/0.3713, allocations: 3.09 MB / 413.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007108/0.3784, allocations: 1.989 MB / 415.7 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01818/0.3966, allocations: 13.03 MB / 428.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04551/0.4421, allocations: 24.09 MB / 452.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009199/0.4514, allocations: 4.755 MB / 457.5 MB, free: 10 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01021/0.4616, allocations: 5.94 MB / 463.5 MB, free: 4.035 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003377/0.4651, allocations: 0.7617 MB / 464.2 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005586/0.4707, allocations: 1.164 MB / 465.4 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004151/0.4749, allocations: 2.502 MB / 467.9 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01112/0.486, allocations: 5.976 MB / 473.9 MB, free: 9.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0234/0.5094, allocations: 21.73 MB / 495.6 MB, free: 3.793 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.5095, allocations: 0 / 495.6 MB, free: 3.793 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.5095, allocations: 4 kB / 495.6 MB, free: 3.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007923/0.5103, allocations: 0 / 495.6 MB, free: 3.789 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.03653/0.5469, allocations: 12.45 MB / 0.4962 GB, free: 7.223 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.5469, allocations: 16.03 kB / 0.4962 GB, free: 7.207 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03375/0.5807, allocations: 6.147 MB / 0.5022 GB, free: 1.039 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01716/0.5979, allocations: 7.817 MB / 0.5098 GB, free: 9.137 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001232/0.5992, allocations: 0.9149 MB / 0.5107 GB, free: 8.223 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004598/0.6038, allocations: 1.199 MB / 0.5119 GB, free: 7.023 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05035/0.6542, allocations: 18.66 MB / 0.5301 GB, free: 4.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007934/0.655, allocations: 19.75 kB / 0.5301 GB, free: 4.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00453/0.6596, allocations: 0.4921 MB / 0.5306 GB, free: 3.758 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007874/0.6604, allocations: 0.6421 MB / 0.5312 GB, free: 3.113 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4123/1.073, allocations: 16.76 MB / 0.5476 GB, free: 121 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08697/1.16, allocations: 59.76 MB / 0.606 GB, free: 73.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01852/1.178, allocations: 33.19 MB / 0.6384 GB, free: 36.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005209/1.184, allocations: 3.768 MB / 0.642 GB, free: 33.01 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01296/1.197, allocations: 8.902 MB / 0.6507 GB, free: 24.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/1.197, allocations: 69.31 kB / 0.6508 GB, free: 23.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.021e-06/1.197, allocations: 3.984 kB / 0.6508 GB, free: 23.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03217/1.229, allocations: 17.61 MB / 0.668 GB, free: 6.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/1.229, allocations: 90.47 kB / 0.6681 GB, free: 6.129 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006592/1.236, allocations: 5.033 MB / 0.673 GB, free: 1.102 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007164/1.236, allocations: 89.7 kB / 0.6731 GB, free: 1.008 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00377/1.24, allocations: 5.463 MB / 0.6784 GB, free: 11.58 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001708/1.242, allocations: 1.354 MB / 0.6798 GB, free: 10.23 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008816/1.243, allocations: 0.5242 MB / 0.6803 GB, free: 9.703 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.631e-05/1.243, allocations: 309.1 kB / 0.6806 GB, free: 9.398 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004632/1.247, allocations: 2.906 MB / 0.6834 GB, free: 6.488 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007011/1.255, allocations: 5.875 MB / 0.6891 GB, free: 15.21 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/1.267, allocations: 9.448 MB / 0.6984 GB, free: 4.32 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.376e-05/1.267, allocations: 28 kB / 0.6984 GB, free: 4.293 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0192/1.286, allocations: 9.859 MB / 0.708 GB, free: 10.38 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/1.287, allocations: 48 kB / 0.7081 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002061/1.287, allocations: 100 kB / 0.7082 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002822/1.29, allocations: 0.9341 MB / 0.7091 GB, free: 9.281 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006667/1.296, allocations: 1.579 MB / 0.7106 GB, free: 7.699 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2303/1.527, allocations: 9.488 MB / 0.7199 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005787/1.533, allocations: 406.3 kB / 0.7203 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001448/1.534, allocations: 349.8 kB / 0.7206 GB, free: 152.4 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.009949/1.544, allocations: 4.259 MB / 0.7248 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001774/1.546, allocations: 0.5103 MB / 0.7253 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01496/1.561, allocations: 6.495 MB / 0.7316 GB, free: 149.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.229e-05/1.561, allocations: 39.38 kB / 0.7316 GB, free: 149.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-05/1.561, allocations: 9.875 kB / 0.7316 GB, free: 149.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/1.561, allocations: 19.73 kB / 0.7317 GB, free: 149.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03267/1.594, allocations: 15.74 MB / 0.747 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/1.594, allocations: 0 / 0.747 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003405/1.597, allocations: 0.7508 MB / 0.7478 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/1.599, allocations: 0.7842 MB / 0.7485 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005916/1.6, allocations: 83.25 kB / 0.7486 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008733/1.609, allocations: 8.676 MB / 0.7571 GB, free: 137.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.609, allocations: 6.328 kB / 0.7571 GB, free: 137.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/1.622, allocations: 9.502 MB / 0.7664 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002499/1.625, allocations: 1.075 MB / 0.7674 GB, free: 132.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000968/1.626, allocations: 78.62 kB / 0.7675 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002429/1.628, allocations: 224.6 kB / 0.7677 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005097/1.629, allocations: 257.1 kB / 0.768 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/1.629, allocations: 113.8 kB / 0.7681 GB, free: 132.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004915/1.634, allocations: 3.368 MB / 0.7714 GB, free: 131.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.022e-06/1.634, allocations: 0 / 0.7714 GB, free: 131.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007433/1.642, allocations: 1.893 MB / 0.7732 GB, free: 129.2 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.0009639/1.643, allocations: 263.9 kB / 0.7735 GB, free: 128.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01088/1.653, allocations: 7.657 MB / 0.7809 GB, free: 122.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/1.653, allocations: 4 kB / 0.7809 GB, free: 122.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005657/1.659, allocations: 3.555 MB / 0.7844 GB, free: 118.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008726/1.668, allocations: 1.226 MB / 0.7856 GB, free: 117.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03263/1.701, allocations: 24.8 MB / 0.8098 GB, free: 93.78 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007664/1.708, allocations: 7.113 MB / 0.8168 GB, free: 86.63 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001952/1.71, allocations: 459.3 kB / 0.8172 GB, free: 86.18 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/1.71, allocations: 0 / 0.8172 GB, free: 86.18 MB / 494.1 MB Notification: Performance of Templates: time 1.048/2.758, allocations: 459.7 MB / 1.266 GB, free: 174.8 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches