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.00107/0.00107, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001086, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 63.89 kB / 358.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2829, allocations: 50.54 MB / 409.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04074/0.3236, allocations: 40.07 MB / 449.4 MB, free: 9.375 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02299/0.3467, allocations: 10.66 MB / 460 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008946/0.3557, allocations: 307 kB / 460.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02047/0.3762, allocations: 8.521 MB / 468.8 MB, free: 5.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.3889, allocations: 3.41 MB / 472.3 MB, free: 2.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007476/0.3964, allocations: 2.362 MB / 474.6 MB, free: 60 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0177/0.4141, allocations: 12.95 MB / 487.6 MB, free: 3.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03663/0.4508, allocations: 25.32 MB / 0.5009 GB, free: 9.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01101/0.4619, allocations: 6.83 MB / 0.5075 GB, free: 2.742 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0135/0.4754, allocations: 7.829 MB / 0.5152 GB, free: 10.88 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005751/0.4812, allocations: 1.953 MB / 0.5171 GB, free: 8.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008129/0.4894, allocations: 2.367 MB / 0.5194 GB, free: 6.566 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006695/0.4961, allocations: 3.951 MB / 0.5233 GB, free: 2.605 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01401/0.5102, allocations: 7.568 MB / 0.5306 GB, free: 11 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.26/0.7702, allocations: 25.9 MB / 0.5559 GB, free: 55.79 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.7702, allocations: 0 / 0.5559 GB, free: 55.79 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.7702, allocations: 0 / 0.5559 GB, free: 55.79 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008126/0.7711, allocations: 0 / 0.5559 GB, free: 55.79 MB / 462.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.04749/0.8186, allocations: 15.04 MB / 0.5706 GB, free: 49.27 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.8186, allocations: 13.66 kB / 0.5706 GB, free: 49.27 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03425/0.8529, allocations: 6.158 MB / 0.5767 GB, free: 46.86 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02286/0.8758, allocations: 8.057 MB / 0.5845 GB, free: 43.37 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008881/0.8767, allocations: 0.9063 MB / 0.5854 GB, free: 42.96 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007753/0.8845, allocations: 1.2 MB / 0.5866 GB, free: 42.56 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04773/0.9322, allocations: 18.66 MB / 0.6048 GB, free: 25.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003844/0.9327, allocations: 15.91 kB / 0.6048 GB, free: 25.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003396/0.9361, allocations: 0.4903 MB / 0.6053 GB, free: 25.27 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004682/0.9365, allocations: 0.6453 MB / 0.6059 GB, free: 24.63 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0364/0.9729, allocations: 16.76 MB / 0.6223 GB, free: 7.859 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1055/1.078, allocations: 58.82 MB / 0.6797 GB, free: 12.55 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02894/1.107, allocations: 33.21 MB / 0.7122 GB, free: 7.438 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007037/1.115, allocations: 3.734 MB / 0.7158 GB, free: 3.691 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01731/1.132, allocations: 8.831 MB / 0.7244 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.83e-05/1.132, allocations: 69.31 kB / 0.7245 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=349): time 4.579e-06/1.132, allocations: 0 / 0.7245 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=389): time 0.0382/1.17, allocations: 17.57 MB / 0.7417 GB, free: 9.129 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/1.17, allocations: 90.47 kB / 0.7417 GB, free: 9.027 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008324/1.179, allocations: 5.033 MB / 0.7467 GB, free: 4 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008041/1.18, allocations: 93.7 kB / 0.7468 GB, free: 3.902 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.27/1.45, allocations: 5.44 MB / 0.7521 GB, free: 218.2 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001642/1.451, allocations: 1.353 MB / 0.7534 GB, free: 217.6 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002468/1.454, allocations: 1.328 MB / 0.7547 GB, free: 217.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.262e-05/1.454, allocations: 304.3 kB / 0.755 GB, free: 217.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004333/1.458, allocations: 2.907 MB / 0.7578 GB, free: 217.2 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004986/1.463, allocations: 5.874 MB / 0.7636 GB, free: 212.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009468/1.473, allocations: 9.436 MB / 0.7728 GB, free: 205.8 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000103/1.473, allocations: 29.94 kB / 0.7728 GB, free: 205.8 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01592/1.489, allocations: 9.849 MB / 0.7824 GB, free: 201.7 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.939e-05/1.489, allocations: 48.75 kB / 0.7825 GB, free: 201.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/1.489, allocations: 97.06 kB / 0.7826 GB, free: 201.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002234/1.491, allocations: 0.9438 MB / 0.7835 GB, free: 201.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00551/1.497, allocations: 1.583 MB / 0.785 GB, free: 201.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01106/1.508, allocations: 10.19 MB / 0.795 GB, free: 193 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005935/1.514, allocations: 408.3 kB / 0.7954 GB, free: 192.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001027/1.515, allocations: 351.6 kB / 0.7957 GB, free: 192.3 MB / 0.5763 GB 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.009409/1.524, allocations: 4.247 MB / 0.7998 GB, free: 188.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001306/1.525, allocations: 0.5131 MB / 0.8003 GB, free: 188.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01004/1.536, allocations: 6.493 MB / 0.8067 GB, free: 182.6 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.268e-05/1.536, allocations: 40 kB / 0.8067 GB, free: 182.6 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/1.536, allocations: 8 kB / 0.8067 GB, free: 182.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-05/1.536, allocations: 19.17 kB / 0.8067 GB, free: 182.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02578/1.561, allocations: 15.71 MB / 0.8221 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/1.561, allocations: 0 / 0.8221 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002865/1.564, allocations: 0.7493 MB / 0.8228 GB, free: 168.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001896/1.566, allocations: 0.7878 MB / 0.8236 GB, free: 167.9 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002375/1.567, allocations: 87.97 kB / 0.8237 GB, free: 167.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009252/1.576, allocations: 9.352 MB / 0.8328 GB, free: 158 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/1.576, allocations: 4.031 kB / 0.8328 GB, free: 158 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/1.589, allocations: 9.492 MB / 0.8421 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003143/1.592, allocations: 1.061 MB / 0.8431 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008871/1.593, allocations: 76 kB / 0.8432 GB, free: 147.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002444/1.596, allocations: 215.8 kB / 0.8434 GB, free: 147 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000615/1.596, allocations: 266.8 kB / 0.8436 GB, free: 146.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002499/1.597, allocations: 112 kB / 0.8437 GB, free: 146.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007368/1.604, allocations: 3.363 MB / 0.847 GB, free: 143.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.41e-07/1.604, allocations: 0 / 0.847 GB, free: 143.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01125/1.615, allocations: 1.882 MB / 0.8489 GB, free: 141.4 MB / 0.5763 GB 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.001153/1.616, allocations: 268.1 kB / 0.8491 GB, free: 141.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.009979/1.626, allocations: 7.665 MB / 0.8566 GB, free: 133.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.626, allocations: 320 / 0.8566 GB, free: 133.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004262/1.631, allocations: 3.555 MB / 0.8601 GB, free: 129.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005973/1.637, allocations: 1.314 MB / 0.8614 GB, free: 128.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03099/1.668, allocations: 19.71 MB / 0.8806 GB, free: 108.8 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007084/1.675, allocations: 7.336 MB / 0.8878 GB, free: 101.4 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005493/1.68, allocations: 2.152 MB / 0.8899 GB, free: 99.25 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/1.682, allocations: 403.4 kB / 0.8903 GB, free: 98.86 MB / 0.5763 GB Notification: Performance of SimCode: time 7.92e-07/1.682, allocations: 0 / 0.8903 GB, free: 98.86 MB / 0.5763 GB Notification: Performance of Templates: time 0.3795/2.061, allocations: 72.36 MB / 0.9609 GB, free: 203 MB / 0.5763 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/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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches